owl

How to query RDF/OWL using SWI-Prolog's Semantic Web Library?

泪湿孤枕 提交于 2019-12-20 12:35:58
问题 How can I use the SWI-Prolog Semantic Web Library to make a query into the OWL/RDF file and extract some information? The OWL/RDF file is having information about all the Debian packages so I need to make the query in order to find package dependencies. For Example: The OWL file is structured as follows: package: A Depends: package: B pacakge: C How can I load a OWL/RDF file into a Prolog script and what is the syntax to make a query within the Prolog script such that I put A as a parameter

SPARQL full aggregation on a group aggregation

 ̄綄美尐妖づ 提交于 2019-12-20 06:25:08
问题 I have an Ontology where users can use one of five predicates to express how much they like an item. The Ontology contains specific predicates that have a property called hasSimilarityValue. I am trying to do the following: Having a user let's say rs:ania Extract all the items that this user has rated before. (this is easy because the Ontology already contains triple from the user to the items) Extract similary items to the items that have been extracted in step 2 and calculate their

how to do reasoning in Jena via Sparql Query

大城市里の小女人 提交于 2019-12-20 05:40:24
问题 I'm using Jena and Sparql to query the ontology file. I have class Tag with two subclasses : C++ and Java. class Subject with several subclasses, which stand for particular University subjects: "C++ programming","System programming", "Java programming" etc. ObjectProperty "hasTags" domain:Subject range:Tag. Each class subject has some tag like "Java", "C++" When executing query SELECT ?subject WHERE { ?subject owl:equivalentClass ?restriction . ?restriction owl:onProperty ont:hasTags .

SPARQL: return all intersections fulfilled by specified or equivalent classes

心已入冬 提交于 2019-12-20 05:30:17
问题 If I have classes ABC and CDE defined as intersections of classes A,B,C,D,E as follows: <Class rdf:about="&blah;ABC"> <equivalentClass> <Class> <intersectionOf rdf:parseType="Collection"> <Restriction> <onProperty rdf:resource="&blah;hasMarker"/> <someValuesFrom rdf:resource="&blah;A"/> </Restriction> <Restriction> <onProperty rdf:resource="&blah;hasMarker"/> <someValuesFrom rdf:resource="&blah;B"/> </Restriction> <Restriction> <onProperty rdf:resource="&blah;hasMarker"/> <someValuesFrom rdf

Could anyone help me with a tool for RDF/OWL visualization?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 04:24:54
问题 I tried searching over the internet but could not find the right tool for the purpose,so if anyone could provide me a link to the tool which could parse and display a graph for RDF and OWL ontologies 回答1: SemWebGraphicalNotation — W3C-maintained list of graphical notations and software applications (outdated); RDF Visualization at Ontotext Research Space; VOWL: Visual Notation for OWL Ontologies — almost standard graphical notation for OWL visualization, the page contains links to

Can GraphDB load 10 million statements with OWL reasoning?

痴心易碎 提交于 2019-12-20 03:13:52
问题 I am struggling to load most of the Drug Ontology OWL files and most of the ChEBI OWL files into GraphDB free v8.3 repository with Optimized OWL Horst reasoning on. is this possible? Should I do something other than "be patient?" Details: I'm using the loadrdf offline bulk loader to populate an AWS r4.16xlarge instance with 488.0 GiB and 64 vCPUs Over the weekend, I played around with different pool buffer sizes and found that most of these files individually load fastest with a pool buffer

Not getting the required output using Wordnet Synset's definition method

一个人想着一个人 提交于 2019-12-19 03:35:19
问题 from nltk.corpus import wordnet syn=wordnet.synsets('cookbook')[0] print syn.definition Expected Output: 'a book of recipes and cooking directions' Actual Output: bound method Synset.definition of Synset('cookbook.n.01') I am unable to pinpoint the error in my code which is causing the difference between the actual output and the expected output. 回答1: >>> from nltk.corpus import wordnet as wn >>> wn.synsets('dog')[0] Synset('dog.n.01') >>> wn.synsets('dog')[0].definition <bound method Synset

How to get individual results while solving Einstein's riddle with OWL in Protégé?

冷暖自知 提交于 2019-12-18 18:42:32
问题 I would like to better understand ontologies and reasoning. There is an interesting puzzle called Einstein's riddle on the net that can be solved with the help of ontologies and reasoning. I downloaded the OWL ontology from that site and imported it into Protege 4.0.2 (does not work with 4.1). I can start a reasoner by Reasoner → FaCT++ , Reasoner → Classify… , but i don't know, how to visualize the individual results. How can I do this? 回答1: There are two ways in which you can visualise the

How to get individual results while solving Einstein's riddle with OWL in Protégé?

五迷三道 提交于 2019-12-18 18:42:01
问题 I would like to better understand ontologies and reasoning. There is an interesting puzzle called Einstein's riddle on the net that can be solved with the help of ontologies and reasoning. I downloaded the OWL ontology from that site and imported it into Protege 4.0.2 (does not work with 4.1). I can start a reasoner by Reasoner → FaCT++ , Reasoner → Classify… , but i don't know, how to visualize the individual results. How can I do this? 回答1: There are two ways in which you can visualise the

how can i add some triple to my Ontology by Jena?

笑着哭i 提交于 2019-12-18 13:39:24
问题 I have instance1 of class1 and instance2 of class2 . Also I have defined HasName(object property) in my ontology. Now, how can I add the triple ( instance1 HasName instance2 ) to my ontology by jena? 回答1: Here's a way without dealing with intermediate Statements . // RDF Nodes -- you can make these immutable in your own vocabulary if you want -- see Jena's RDFS, RDF, OWL, etc vocabularies Resource class1 = ResourceFactory.createResource(yourNamespace + "class1"); Resource class2 =