owl

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

こ雲淡風輕ζ 提交于 2019-11-30 22:23:43
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. >>> from nltk.corpus import wordnet as wn >>> wn.synsets('dog')[0] Synset('dog.n.01') >>> wn.synsets('dog')[0].definition <bound method Synset.definition of Synset('dog.n.01')> >>> wn.synsets('dog')[0].definition() u'a member of the genus Canis

How to extend ontology with other standard ontologies in Protégé?

你。 提交于 2019-11-30 20:33:37
I am building an ontology using Protégé, but wan to extend it with other standard ontologies such as frbr, prov, and org. Is there a standard way to integrate our ontology with these standard ontologies or can we merge these ontologies with each other? I want to do these tasks using Protégé. Joshua Taylor Unless I'm missing something about your question (which didn't really provide enough information to diagnose the problem that you're actually having), this is what owl:imports is for. You can import other (OWL) ontologies into your own. In Protégé, you just use the Ontology imports under the

Reasoning OWL ontology using inverse property?

隐身守侯 提交于 2019-11-30 20:04:55
I'm using Protege v4.3 for making ontologies. I have a question about OWL ontology and DL query. For instance, in the Pizza ontology, http://owl.cs.manchester.ac.uk/co-ode-files/ontologies/pizza.owl I can execute the DL query hasTopping some CheeseTopping The result is American, AmericanHot, Cajun,.. etc. That's OK. Now, i tried DL query isToppingOf some American But the result is nothing. Because the property isToppingOf is inverse property of hasTopping, I expected to get the result including FourCheesesTopping, CheeseyVegetableTopping, etc. from that query(by inference). Bud it didn't. Is

Retrieving superclasses implied by OWL intersection classes

Deadly 提交于 2019-11-30 18:36:42
问题 An OWL ontology may have classes A, B, and C, and axiom (in DL notation): A &sqsubseteq; (B &sqcap; C) or in approximate Manchester OWL Syntax: A subClassOf (B and C) It is logically true that A is a subclass of B, and that A is a subclass of C, but the triples A rdfs:subClassOf B A rdfs:subClassOf C are not necessarily present in the RDF serialization of the OWL ontology. For instance, consider this very simple ontology in Protégé and its RDF serialization in RDF/XML and Turtle: <rdf:RDF

Fuseki indexed (Lucene) text search returns no results

 ̄綄美尐妖づ 提交于 2019-11-30 18:24:35
问题 I have a very large ontology RDF file (almost 4M instances) that I'm currently streaming via Fuseki v2.0.0. My assembler file looks like this: @prefix : <#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> . @prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix text: <http://jena.apache.org/text#> . @prefix myprefix: <http://www.example.org/some/path/myprefix#> . #

Ordering of entities in an ontology

眉间皱痕 提交于 2019-11-30 18:20:37
问题 I have a system that models some domain data in an ontology, the usual sort of triplestore. I've been looking around for a way to express plurality and ordering but haven't found anything via the googles. My main use case is something like one entity in the domain can be a list of tasks, (get groceries, cook meal, eat meal, something like that) but in general I feel like having the ability to 'weight' your edges might be useful across the board. Is there an accepted way of doing this? Just go

How to express numeric intervals in datatype property in the ontology?

别等时光非礼了梦想. 提交于 2019-11-30 17:51:22
问题 What I am trying to do is create a datatype property that accepts and recognizes numeric intervals. For example lets say I have the property "temperature". In the ontology I want to create 2 sub properties "hot" and "cold". Hot would be temperatures 20-30 and cold 0-19. What I am doing at the moment is having some properties set as lowerlim and upperlim. But is there a more convenient way to express intervals directly through the property? So that when I query for example "23" it would

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

孤者浪人 提交于 2019-11-30 16:31:47
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? There are two ways in which you can visualise the results. Firstly, when you select the "Classes" Tab, you will see that there are two views available to you:

Sparql query for children, grandchildren, .. of a class

走远了吗. 提交于 2019-11-30 15:59:15
I have an owl file I built in Protege. What is the sparql query which will select all the subclasses of a class and all the subclasses of those subclasses, so on and so on (Breadth First Search Sort of Manner)? Joshua Taylor This might be answered by Sparql query Subclass or EquivalentTo , but that question and its answer contain a lot more information that what you're asking for here. You can't really enforce the search strategy (depth first vs. depth first), but you can (sort of) order subclasses by their distance from the root, if there's a unique path from the root to the subclass. First,

Retrieve OWL Individuals with same Object Properties using OWL API 4.0

a 夏天 提交于 2019-11-30 15:53:42
I am using OWL Api 4.0 in eclipse 3.4 with a simple ontology in Protege 4. I have two classes "Ward" and "Gaurdian". Individuals of these classes are related by object property isWardOf. How can i retrieve the individuals of class Ward that are related to same individual of Class Gaurdian. consider the following figure:- I want to retrieve the Fact that Peter and Allice are related or siblings as they both are connected to Jack. Any rough clue as to how to achieve this using OWL API 4.0. My complete owl file is affixed:- <?xml version="1.0"?> <!DOCTYPE Ontology [ <!ENTITY xsd "http://www.w3