我正在尝试查询本体,以便通过owlapi获取具有SPARQL-DL名称“Andrea”的Person的所有实例:
SELECT?i WHERE {Type(?i,ns:Person),PropertyValue(?i,ns:name,“Andrea”)}
我得到了这个: [http-nio-8080-exec-10] org.primefaces.application.exceptionhandler.PrimeExceptionHandler.logException uk.ac.manchester.cs.owl.owlapi.OWLDataFactoryImpl.getInstance()Lorg / semanticweb / owlapi / model / OWLDataFactory; java.lang.NoSuchMethodError:uk.ac.manchester.cs.owl.owlapi.OWLDataFactoryImpl.getInstance()Lorg / semanticweb / owlapi / model / OWLDataFactory; at de.derivo.sparqldlapi.impl.QueryParserImpl.appendLiteral(QueryParserImpl.java:514) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseVariableBlankURILiteral(QueryParserImpl.java:450) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseAtom(QueryParserImpl.java:314) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseAtoms(QueryParserImpl.java:267) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseWhere(QueryParserImpl.java:192) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseSelect(QueryParserImpl.java:139) at de.derivo.sparqldlapi.impl.QueryParserImpl.parseQueryHead(QueryParserImpl.java:111) at de.derivo.sparqldlapi.impl.QueryParserImpl.parse(QueryParserImpl.java:67) 在de.derivo.sparqldlapi.Query.create(Query.java:106)
感谢所有人, 安德烈