RDF/JSON Parser can not parse triples with blank node objects when the blank 
node does not appear as subject.
-------------------------------------------------------------------------------------------------------------

                 Key: CLEREZZA-415
                 URL: https://issues.apache.org/jira/browse/CLEREZZA-415
             Project: Clerezza
          Issue Type: Bug
            Reporter: Daniel Spicar
            Priority: Minor


Triples of the form (N-Triples syntax):
<http://example.org/res> <http://example.org/prop> _:a .

can not be parsed. Error message:

java.lang.IllegalArgumentException: Invalid object: null
        at 
org.apache.clerezza.rdf.core.impl.TripleImpl.<init>(TripleImpl.java:50)
        at 
org.apache.clerezza.rdf.rdfjson.parser.RdfJsonParsingProvider.addValuesToGraph(RdfJsonParsingProvider.java:130)

While such triples may not be very interesting semantically, they are 
nevertheless valid RDF.

If there is a triple of the form (the blank node appears as the subject)
_:a <http://example.org/prop2> "Hello" .
in the graph the parsing succeeds. 

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to