On 13/01/11 17:24, Osmun, Taylor wrote:
Hi All,
As the subject name says, I am having problems parsing variables in a nested
BNode of N3. The reasoning engine Euler (http://eulersharp.sourceforge.net/)
successfully parses the following subject, but Jena does not.
:ClinicalProblemA03
:hasReference [rdf:type :Reference; :applyTo ?anyone; :referTo
:ClinicalProblemB05];
:isLinkedToOntology true.
The error returned to me is:
Exception in thread "main" com.hp.hpl.jena.n3.turtle.TurtleParseException:
[123, 64] : Error: Object is not a URI, blank node or literal
Any help is greatly appreciated here.
You have ":applyTo ?anyone" -- ?anyone is a variable.
You can only parse RDF into a graph and variables aren't in RDF. N3
goes beyond RDF in several ways (variables, graph literals) and Jena is
an RDF toolkit.
Andy
Thanks!
Taylor O.