我已經開始使用耶拿並且測試了它的基於規則的reasoners,但是我沒有看到我期望的結果。我列出的所有個人聲明,這些都是從我的OWL文件:耶拿規則沒有在預期時發射
[http://www.semanticweb.org/ontologies/2012/6/Ontology1342794465827.owl#CreditCardPayment, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2000/01/rdf-schema#Resource]
[http://www.semanticweb.org/ontologies/2012/6/Ontology1342794465827.owl#UseCase, http://www.w3.org/1999/02/22-rdf-syntax-ns#type, http://www.w3.org/2000/01/rdf-schema#Resource]
我要選擇選擇CreditCardPayment
,所以我寫了這個規則:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@prefix base: <http://www.semanticweb.org/ontologies/2012/6/Ontology1342794465827.owl#>
[rule1:
(?use rdf:Type rdfs:Resource)
->
print('test')
]
但規則不火。我在規則文件中做了什麼錯誤? (我已經測試了
[rule1:
print('test')
->
print('test')
])
和它的作品。