[英]Owl Persistence Individual only context to current request?
[英]Relates OWL individual with OWL axiom
我必須將owl:axiom
與owl:individual
。
我的RDF如下:
<owl:NamedIndividual rdf:about="http://www.sab.org/abbeys#Abbaye_Notre-Dame_de_Maizières_Saint-Loup-de-la-Salle,_Saône-et-Loire">
<rdf:type rdf:resource="http://www.sab.org/abbeys#Monastery"/>
<rdfs:label>Abbaye Notre-Dame de Maizières Saint-Loup-de-la-Salle, Saône-et-Loire</rdfs:label>
<abbeys:hasFoundationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1132</abbeys:hasFoundationDate>
</owl:NamedIndividual>
<owl:Axiom>
<owl:has_trusted_certainty_degree rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.9</owl:has_trusted_certainty_degree>
<owl:annotatedTarget rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1132</owl:annotatedTarget>
<owl:annotatedProperty rdf:resource="http://www.sab.org/abbeys#hasFoundationDate"/>
<owl:annotatedSource rdf:resource="http://www.sab.org/abbeys#Abbaye_Notre-Dame_de_Maizières_Saint-Loup-de-la-Salle,_Saône-et-Loire"/>
</owl:Axiom>
我需要將has_trusted_degree
與owl:individual
的成立日期相關聯。
我嘗試了以下查詢,但未返回任何內容:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX : <http://www.sab.org/abbeys#>
PREFIX xds: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?label ?trust
WHERE {
?monastery rdfs:label ?label.
FILTER(lang(?label) = '')
OPTIONAL{?monastery :has_trusted_certainty_degree ?trust}
ORDER BY ?label
誰能幫我解決這個問題?
提前致謝
您的本體的屬性前綴錯誤,請參見以下行:
<owl:has_trusted_certainty_degree rdf:datatype="http://www.w3.org/2001/XMLSchema#string">0.9</owl:has_trusted_certainty_degree>
我假設owl
是OWL詞匯的前綴,而不是用戶定義的名稱空間的前綴。 因此,它不應該是owl:has_trusted_certainty_degree
而是名稱空間http://www.sab.org/abbeys#
的前綴。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.