owl

how group graph pattern work in SPARQL

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 05:04:36
问题 First of all, i don't know if this really called group graph pattern or not. Anyway, Look at this query please select ?x ?y where { {?x rdf:type rs:Recommendable} union {?xd rs:doesntexist ?y} } there is no rs:doesntexist but with union i got the results only from the first sub graph which is {?x rdf:type rs:Recommendable} but if i remove the union, so the query will be: select ?x ?y where { {?x rdf:type rs:Recommendable} {?xd rs:doesntexist ?y} } I get empty results, may I ask you please who

Java - Using Jena APi - Get data from RDF file

泪湿孤枕 提交于 2019-12-04 05:01:25
问题 My question concerns the class Person with the datatype properties hasFirstName , hasLastName , hasDateOfBirth , hasGender . I'm using Java and Jena API. Here is how one person is represented in my RDF file. <rdf:Description rdf:about="http://www.fam.com/FAM#Bruno04/02/1980 "> <j.0:FAMhasGender>H</j.0:FAMhasGender> <j.0:FAMhasDateOfBirth>04/02/1980</j.0:FAMhasDateOfBirth> <j.0:FAMhasLastName>DS </j.0:FAMhasLastName> <j.0:FAMhasFirstName> Bruno</j.0:FAMhasFirstName> </rdf:Description> I want

restrict xsd:string to [A-Z] for rdfs:range

ⅰ亾dé卋堺 提交于 2019-12-04 04:48:59
How can I specify the range of a datatype property to be xsd:strings whose literal forms match [A-Z]? OWL restrictions don't do the trick for me, at least at first glance. Is there a way to do this with regular expressions and if so, where? I suppose you mean "single capital letter" which is string[pattern "[A-Z]"] . If you are using Protege, enter this into the "Data range expression" tab. HermiT 1.3.7 can check this and provide explanations about inconsistent property values. Other answers have explained that this can be done using the XSD facets to restrict the string range of the property

QCRs vs functional property

情到浓时终转凉″ 提交于 2019-12-04 02:38:56
问题 I have question based on the topic: SOF - Einstein puzzle in OWL In the owl, all cardinality restrictions are based on functional and inverse functional properties of Object Properties. I have remodeled it using QCRs. Old model (example): man drinks some beverage; drinks -> functional, inferse functional New model /EDITED/ : man drinks exactly 1 beverage; beverage drinkedBy exactly 1 man; drinks -> domain:man, range:beverage drinkedBy -> domain:beverage, range:man drinks inverseOf drinkedBy I

Open Source Triple store for OWL [closed]

筅森魡賤 提交于 2019-12-03 20:55:27
I'm new with triple stores and I need a good recommendation for an open source triple store, where I can store OWL files. Does someone have some recommendations for me? Thank you a lot! Bests M Rock I think 4Store would be a good choice, which is fast and stable. You can get some information from project repository Jena TDB and Sesame RDF4J would be another choice. Both are open source. You can refer the comparison between Jena and Sesame here Other materials: More large triple stores introduction . RDF Store Benchmarking Jeen Broekstra As OWL files are RDF, any RDF triplestore will do for

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

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 is OWL actually used when building a semantic web application?

孤街浪徒 提交于 2019-12-03 12:00:49
I've been reading about semantic web technologies such as RDF and OWL, and am intrigued about the possibilities of building an RDF / triple-store semantic database on top of my existing relational DBs. It's simply an R&D exercise, to see what I can do. I like the look of OWLIM , but some basics are failing me. How exactly is one meant to build and then use an OWL ontology? Do you build it with something like Protege , then import it into your repository? Or is the ontology a byproduct of the software you develop to communicate with the repo? It's a newbie question, but I'm just not sure where

RDF and OWL workflow question

纵然是瞬间 提交于 2019-12-03 08:51:02
I have been looking at and playing with OWL through Protege and I would like to know if I understand the "workflow" and idea of it correctly (for building up a database from scratch: Generate an OWL ontology for your data using Protege or equivalent Export this schema to RDF Use the classes defined as some of the elements in a triplestore along with your target data Export your triplestore to RDF Use openRDF/sesame or Jena to load the defined data and ontology Validate your RDF triplestore against your OWL ontology to make sure everything is ok Use SPARQL to get data from your RDF triplestore