@Namespaces({"","http://purl.org/net/grafli#","owl","http://www.w3.org/2002/07/owl#","xml","http://www.w3.org/XML/1998/namespace","xsd","http://www.w3.org/2001/XMLSchema#","foaf","http://xmlns.com/foaf/0.1/","rdfs","http://www.w3.org/2000/01/rdf-schema#","skos2","http://www.w3.org/2008/05/skos#"})
aManager.createQuery("where {?result a :SequencingRun; :wasAssociatedWith [a foaf:Person; foaf:accountName 'JohnPe']}")
java.lang.IllegalArgumentException: Invalid query: PREFIX skos2: <http://www.w3.org/2008/05/skos#>PREFIX owl: <http://www.w3.org/2002/07/owl#>PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX xml: <http://www.w3.org/XML/1998/namespace>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX foaf: <http://xmlns.com/foaf/0.1/>
select ?result where {?result a :sequencingrun; :wasassociatedwith [a foaf:person; foaf:accountname 'johnpe']} at com.clarkparsia.empire.impl.sparql.SPARQLDialect.validateQueryFormat(SPARQLDialect.java:111) at com.clarkparsia.empire.impl.RdfQuery.<init>(RdfQuery.java:172) at com.clarkparsia.empire.impl.RdfQueryFactory.newQuery(RdfQueryFactory.java:104) at com.clarkparsia.empire.impl.RdfQueryFactory.createQuery(RdfQueryFactory.java:136) at com.clarkparsia.empire.impl.EntityManagerImpl.createQuery(EntityManagerImpl.java:254) at EmpireTest.main(wrapper.groovy:31)Caused by: org.openrdf.query.MalformedQueryException: org.openrdf.query.parser.sparql.ast.VisitorException: QName ':sequencingrun' uses an undefined prefix
Thanks for Empire, b.t.w; it's a great library.
--
You received this message because you are subscribed to the Google Groups "Empire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to empire-rdf+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
if (aPrefix.trim().equals("")) {
continue;
}