如何从 SPARQL 端点查询类之间的关系?这些类也可能与外部 SPARQL 端点相关联。
端点 1:
@prefix ex: <http://example.org/resource/> .
@prefix exo: <http://example.org/ontology/> .
ex:epigeal_srephaia rdf:type exo:Herb .
ex:epigeal_srephaia rdfs:label 'epigeal srephaia'@en .
ex:epigeal_srephaia exo:has ex:cepharanthine .
端点 2:
@prefix ex: <http://example.org/resource/> .
@prefix exo: <http://example.org/ontology/> .
ex:cepharanthine rdf:type exo:Compound .
ex:cepharanthine rdfs:label 'cepharanthine'@en .
我可以得到
exo:Herb
和exo:Compound
之间的关系。
exo:Herb exo:has exo:Compound