rdf

How to handle case-insensitive SPARQL data in MarkLogic

流过昼夜 提交于 2021-02-18 22:01:47
问题 I'm trying to understand how best to handle literals in Marklogic SPARQL data which may be in any case. I'd like to be able to do a case insensitive search but I believe that isn't possible with semantic queries. For a simplistic example I want: SELECT * WHERE { ?s ?p "Red"} and SELECT * WHERE { ?s ?p "red"} to return all values whether the object is "Red", "RED", "red" or "rED". My data is from another source which has variable capitalisation rules. At the moment the only thing I can think

How to handle case-insensitive SPARQL data in MarkLogic

雨燕双飞 提交于 2021-02-18 21:58:37
问题 I'm trying to understand how best to handle literals in Marklogic SPARQL data which may be in any case. I'd like to be able to do a case insensitive search but I believe that isn't possible with semantic queries. For a simplistic example I want: SELECT * WHERE { ?s ?p "Red"} and SELECT * WHERE { ?s ?p "red"} to return all values whether the object is "Red", "RED", "red" or "rED". My data is from another source which has variable capitalisation rules. At the moment the only thing I can think

RDFS, Jena: how to query taking ontology into account

被刻印的时光 ゝ 提交于 2021-02-10 19:12:14
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

风流意气都作罢 提交于 2021-02-10 19:12:00
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

跟風遠走 提交于 2021-02-10 19:11:25
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

三世轮回 提交于 2021-02-10 19:10:58
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

此生再无相见时 提交于 2021-02-10 19:10:40
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

RDFS, Jena: how to query taking ontology into account

Deadly 提交于 2021-02-10 19:08:52
问题 I have two separate Jena models, one containing an RDFS ontology and the other containing the statements. Right now I cannot, for example, write a query which returns all results for a particular class, since the class is not described in the RDF statements. What I want is to query the statements model by taking into account the ontology as well. How can I do this? 回答1: You can query the ontology using SPARQL language and store the result and you can query other statements using any normal

Matching attribute sets using SPARQL

烈酒焚心 提交于 2021-02-10 18:44:38
问题 This question is about finding matching candidate and path using a triple store with SPARQL endpoint (Fuseki 3.8.0). The matching criteria is that the attribute 's of a candidate must contain all of the requires of a path . In the minimal example data below, the matches should be candi_1 with path_1 and candi_2 with path_2 . @prefix : <http://example.com/app#> . :candi_1 a :candidate ; :attribute "A", "B", "C" . :candi_2 a :candidate ; :attribute "C", "D" . :candi_3 a :candidate ; :attribute

Is there any implementation guide about AIML-OWL Integration?

只谈情不闲聊 提交于 2021-02-08 09:44:08
问题 So, i've done build an ontology using protégé and generate owl file, as far as i know owl is the rdf xml-based with more expressivity, and there are couples of paper that tells RDF can be integrated with AIML to build pattern matching chatbot with some kind of extensible knowledge such as https://www.researchgate.net/publication/228877414_Extending_knowledge_of_AIML_by_using_RDF http://conferences.idealliance.org/extreme/html/2007/Freese01/EML2007Freese01.html But i can't get any clear