ontology

RDFS: same property for multiple domains

吃可爱长大的小学妹 提交于 2019-12-03 21:54:51
I have an RDFS ontology with two completely separate classes: User and Venue . I want them both to have names which are provided through a property called hasName , which for a User should look similar to: <rdf:Property rdf:ID="hasName"> <rdfs:comment> Comment here. Blah blah blah. </rdfs:comment> <rdfs:domain rdf:resource="#user"/> <rdfs:range rdf:resource="Literal"/> </rdf:Property> However, if I want it for a Venue as well, it doesn't validate. How should I approach this? You can in principle just specify multiple domain properties: <rdf:Property rdf:ID="hasName"> <rdfs:domain rdf:resource=

OWL ObjectProperty loading as annotation in Protégé

左心房为你撑大大i 提交于 2019-12-03 20:18:42
I'm trying to load an ontology in Protégé but it is not processed as expected. Most problematic is that all the Object and Data Properties appear as Annotation instead of Data Property and Object Property. I have an Object Property kingdom : <owl:ObjectProperty rdf:about="&wo;kingdom"> <rdfs:label xml:lang="en">kingdom</rdfs:label> <rdfs:comment xml:lang="en">associates a taxon rank with a kingdom</rdfs:comment> <vs:term_status>testing</vs:term_status> <rdfs:range rdf:resource="&wo;Kingdom"/> <rdfs:domain rdf:resource="&wo;TaxonRank"/> </owl:ObjectProperty> /nature/life/Chordate#kingdom has

How get DBpedia data in a specific language?

跟風遠走 提交于 2019-12-03 19:57:34
问题 i tried this request http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?QueryClass=film&QueryString=transformers&MaxHits=1 but if i want to retrieve info in italian language? it there another service (similar this) that can? 回答1: You could use dbpedia SPARQL endpoint to run query. For example: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?film ?description ?film_name WHERE {

Why use owl:Restriction as own:EquivalenceClass's property?

浪子不回头ぞ 提交于 2019-12-03 16:50:03
I just start to learn Semantic Web and have a question about restriction class. I dug a while but haven't found any answer yet.. Any help would be much appreciated! From text book, I see examples of define restriction class, they are all about to define a anonymous owl:Restriction class bnode and link this bnode with property owl:equivalentClass . example: example:restrictionClass owl:equivalentClass [ rdf:type owl:Restriction; owl:onProperty example:resProp; owl:someValuesFrom example:resValue. ] My question is can we define a restriction class directly? Like: example:restrictionClass rdf

owl - protege not inferring correctly? how to define precisely a class “vegetarian”?

拈花ヽ惹草 提交于 2019-12-03 16:06:44
I have been stuck for two days now trying to understand why the following scenario isn't working: screenshots here: http://dl.dropbox.com/u/4677548/screenshots.html I have a VegetarianFood class (subclass of Food) that is equivalent to "Food and (Eggs or MilkAndDerivates or VeganFood)" as you can see in the screenshot number 1 The VeganFood class, on turn, is equivalent to other classes (NutsAndSeeds, Cereals, Fruit, etc...) screenshot 2 as you can see there are two individuals (cheddar cheese and cashew) created as MilkAndDerivates and NutsAndSeeds screenshot 3 and they are correctly inferred

How to relate each instance of class with each instance of another class?

戏子无情 提交于 2019-12-03 14:15:13
问题 The general problem I'm working on a simple ontology, using Protégé 4.3 and trying to create a model such that every instance of a class C has some particular value v , which is an instance of a class V , for a given property p . I can get this inference using an axiom C subClassOf (p value v) but I think I want to be able to state this more along the lines of a C subClassOf (p some V) because I'd actually like each instance of C to be related to every instance of V . A specific example My

How to create an ontology in Java?

只愿长相守 提交于 2019-12-03 09:30:31
问题 I've some data triplets that I want to write in some sort of basic OWL ontology. I've triplets like: Delhi is part of India or India is an Asian country Note that I've relations like "is-a", "part-of", or "related-to". What's the simplest way to build an ontology? Any working example or a reference to an example website will be great help! 回答1: There are a lot of different things mixed up in your question, I strongly suggest you take a bit of time (away from the keyboard!) to think through

How to relate each instance of class with each instance of another class?

☆樱花仙子☆ 提交于 2019-12-03 04:01:18
The general problem I'm working on a simple ontology, using Protégé 4.3 and trying to create a model such that every instance of a class C has some particular value v , which is an instance of a class V , for a given property p . I can get this inference using an axiom C subClassOf (p value v) but I think I want to be able to state this more along the lines of a C subClassOf (p some V) because I'd actually like each instance of C to be related to every instance of V . A specific example My example is automobiles and actions — I want to create a set of actions for automobiles. When I create new

Which Triplestore for rapid semantic web development?

喜欢而已 提交于 2019-12-03 03:56:55
问题 Ease of installation/use is the most important factor here - not performance. Small is OK as large datasets are not expected. 回答1: I'd also recommend sesame, its lightweight, pretty easy to install, and provides good performance for small datasets. Query performance is far better with Sesame 1.2.x than Sesame 2.x because of the addition of context support to the 2.x series. I've tested sesame installation/deployment with tomcat, resin, and jetty, and it worked easily with all of them. I don't

Data range expression for an enumeration in Protégé

我与影子孤独终老i 提交于 2019-12-02 21:30:55
问题 I would like to define the range of a data type property as an exhaustive enumeration of strings, in a way that an individual could have as value of this property only one of the strings in the enumeration. For example, a data type property called "color", which can assume only 3 values: "Red", "Green" and "Blue". I'm using OWL 2, and Protégé 5.0. Is there an easy way of doind that using Protégé? 回答1: I don't seem to be able to find an exact duplicate question, though I think that this may