Author: rwesten
Date: Tue Aug  2 15:55:46 2011
New Revision: 1153171

URL: http://svn.apache.org/viewvc?rev=1153171&view=rev
Log:
removed a restriction to only create Representations for Resources that do have 
a value for rdf:type

Modified:
    
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/RepresentationReader.java

Modified: 
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/RepresentationReader.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/RepresentationReader.java?rev=1153171&r1=1153170&r2=1153171&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/RepresentationReader.java
 (original)
+++ 
incubator/stanbol/trunk/entityhub/jersey/src/main/java/org/apache/stanbol/entityhub/jersey/parsers/RepresentationReader.java
 Tue Aug  2 15:55:46 2011
@@ -272,9 +272,9 @@ public class RepresentationReader implem
                     header(HttpHeaders.ACCEPT, acceptedMediaType).build());
                 
             }
-            for(Iterator<Triple> st = graph.filter(null, RDF.type, 
null);st.hasNext();){
+            for(Iterator<Triple> st = graph.iterator();st.hasNext();){
                 NonLiteral resource = st.next().getSubject();
-                if(processed.add(resource) && resource instanceof UriRef){
+                if(resource instanceof UriRef && processed.add(resource)){
                     //build a new representation
                     representations.add(
                         valueFactory.createRdfRepresentation((UriRef)resource, 
graph));


Reply via email to