0
我在SPARQL新的,我需要查詢一個本體從它那裏得到一些值:SPARQL - 獲取especific值
<owl:Class rdf:about="http://purl.obolibrary.org/obo/DOID_1943">
<rdfs:label rdf:datatype="http://www.w3.org/2001/XMLSchema#string">telogen effluvium</rdfs:label>
<rdfs:subClassOf rdf:resource="http://purl.obolibrary.org/obo/DOID_987"/>
<oboInOwl:id rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DOID:1943</oboInOwl:id>
<oboInOwl:hasDbXref rdf:datatype="http://www.w3.org/2001/XMLSchema#string">ICD9CM:704.02</oboInOwl:hasDbXref>
<oboInOwl:hasDbXref rdf:datatype="http://www.w3.org/2001/XMLSchema#string">SNOMEDCT_2010_1_31:201147004</oboInOwl:hasDbXref>
<oboInOwl:hasDbXref rdf:datatype="http://www.w3.org/2001/XMLSchema#string">SNOMEDCT_2010_1_31:39479004</oboInOwl:hasDbXref>
<oboInOwl:hasExactSynonym rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Telogen effluvium (disorder)</oboInOwl:hasExactSynonym>
<oboInOwl:hasDbXref rdf:datatype="http://www.w3.org/2001/XMLSchema#string">UMLS_CUI:C0263518</oboInOwl:hasDbXref>
<oboInOwl:hasOBONamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#string">disease_ontology</oboInOwl:hasOBONamespace>
</owl:Class>
,我需要選擇貓頭鷹類(DOID_1943),並獲得標籤( telogen effluvium)也是snomed代碼(SNOMEDCT_2010_1_31:201147004和SNOMEDCT_2010_1_31:39479004)。
我這樣做:
select distinct ?x ?a
where {
?x <http://www.geneontology.org/formats/oboInOwl#hasDbXref> ?a
}
但不工作,甚至當我得到我想要的數據,它不與貓頭鷹類相關聯。