隨着Blazegraph以下RDF(從this answer截取):爲什麼貓頭鷹:限制推理在Blazegraph中不起作用?
:eats rdf:type owl:ObjectProperty .
:Vegetable rdf:type owl:Class ;
rdfs:subClassOf owl:Thing .
:Vegetarian rdf:type owl:Class ;
owl:equivalentClass [ rdf:type owl:Restriction ;
owl:onProperty :eats ;
owl:someValuesFrom :Vegetable
] .
:Carrot rdf:type :Vegetable ,
owl:NamedIndividual .
:John rdf:type owl:NamedIndividual , owl:Thing ;
:eats :carrot .
以下SPARQL正在返回空白:
select ?who
where
{
?who a :Vegetarian .
}
下面是Blazegraph命名空間CONFIGS(Blazegraph從命令行運行作爲NanoSparqlServer ):
com.bigdata.namespace.kb.spo.com.bigdata.btree.BTree.branchingFactor 1024
com.bigdata.relation.container test-ng-2
com.bigdata.journal.AbstractJournal.bufferMode DiskRW
com.bigdata.journal.AbstractJournal.file bigdata.jnl
com.bigdata.journal.AbstractJournal.initialExtent 209715200
com.bigdata.rdf.store.AbstractTripleStore.vocabularyClass com.bigdata.rdf.vocab.DefaultBigdataVocabulary
com.bigdata.rdf.store.AbstractTripleStore.textIndex false
com.bigdata.btree.BTree.branchingFactor 128
com.bigdata.namespace.kb.lex.com.bigdata.btree.BTree.branchingFactor 400
com.bigdata.rdf.store.AbstractTripleStore.axiomsClass com.bigdata.rdf.axioms.OwlAxioms
com.bigdata.service.AbstractTransactionService.minReleaseAge 1
com.bigdata.rdf.sail.truthMaintenance true
com.bigdata.journal.AbstractJournal.maximumExtent 209715200
com.bigdata.rdf.sail.namespace test-ng-2
com.bigdata.relation.class com.bigdata.rdf.store.LocalTripleStore
com.bigdata.rdf.store.AbstractTripleStore.quads false
com.bigdata.relation.namespace test-ng-2
com.bigdata.btree.writeRetentionQueue.capacity 4000
com.bigdata.rdf.store.AbstractTripleStore.statementIdentifiers true
我錯過了什麼?
但大概胡蘿蔔是一個個體,是胡蘿蔔的一個實例。由於吃是一個對象屬性,所以說「約翰吃胡蘿蔔」是沒有意義的,因爲對象屬性將個體與其他個體相關聯,而不是類。 –
我認爲這裏的胡蘿蔔是一個個體,和胡蘿蔔一樣。不一定是同一個。 – Ignazio
由於胡蘿蔔的完整定義包含rdf:type owl:NamedIndividual,我認爲這只是一個錯字 –