owl

OWL2 modelling a subclass with one different axiom

我是研究僧i 提交于 2019-12-02 06:48:23
问题 I'm trying to model some lexical data using OWL 2 (DL, using Protege). My main class is "Lemma", which has a number of axioms (using Manchester syntax): Every Lemma hasLanguage some Language. Every Lemma hasEtymology some Etymology. Every Lemma hasMorphology some Morphology. etc. I also have a class VariantLemma, which is basically a variant spelling of the original lemma, but it will always have the same language and etymology as its parent Lemma, but can have different morphology. I

Copy a Sesame repository into a new one

谁说胖子不能爱 提交于 2019-12-02 06:23:10
I'd like to copy all the data from an existing Sesame repository into a new one. I need the migration so that I use OWL-inferencing on my triplestore which is not possible using OWLIM in an In Memory repository (the type of my existing repository). What is the most efficient way to copy all triples from a repository into a new one? UPDATE 1: I'm curious to understand why using SPARQL INSERT cannot be a valid approach. I tried this code under the SPARQL Update section of a new repository: PREFIX : <http://dbpedia.org/resource/> INSERT{?s ?p ?o} WHERE { SERVICE <http://my.ip.ad.here:8080/openrdf

OWL: How to get inheritance of property relations between two classes from those of superclasses?

戏子无情 提交于 2019-12-02 06:12:58
问题 Let's say we have two classes named People and Disease . These classes are related by the Object Property has . :People :has :Disease People has subclass (or individual) John , and Disease has subclass (or individual) Cancer . :John a :People :Cancer a :Disease How can we get the relationship between these subclasses by inference? :John :has :Cancer 回答1: Before you can get to an answer, there are a number of misconceptions you'll need to resolve. First, subclass and individual are very

how group graph pattern work in SPARQL

家住魔仙堡 提交于 2019-12-02 05:38:11
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 this work? and the weird thing to me that this query select ?x ?y where { {?x rdf:type rs

It is possible to use aggregate function when inserting data in SPARQL?

大城市里の小女人 提交于 2019-12-02 05:29:53
I have the following query which aims to prevent the insertion in a named graph when the amount of triples is of a given number, e.g., 5. I tried to reproduce the example showed here where the insertion of data is possible but I need to use the same named graph and, most important an aggregate function, i.e., COUNT. INSERT { GRAPH <http://example/g1> { ?s ?p ?o } } WHERE { GRAPH <http://example/g1> { ?s ?p ?o . FILTER ( COUNT(?p) < 5) } } Jena Fuseki raises the following error: Aggregate expression not legal at this point Yes, this is possible: INSERT { GRAPH <http://example/g2> { ?s ?p ?o } }

OWL2 modelling a subclass with one different axiom

巧了我就是萌 提交于 2019-12-02 05:04:46
I'm trying to model some lexical data using OWL 2 (DL, using Protege). My main class is "Lemma", which has a number of axioms (using Manchester syntax): Every Lemma hasLanguage some Language. Every Lemma hasEtymology some Etymology. Every Lemma hasMorphology some Morphology. etc. I also have a class VariantLemma, which is basically a variant spelling of the original lemma, but it will always have the same language and etymology as its parent Lemma, but can have different morphology. I originally modelled it as being equivalent to: Lemma and (isVariantOf some Lemma) but how can I state that it

Java - Using Jena APi - Get data from RDF file

一个人想着一个人 提交于 2019-12-02 04:51:09
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 to write this line below if gender is female : [label= \"" +firstName+ " \"\n\n\"D.Naiss:"+dnai1+"\", "

SWRL and Rolification cannot return what I want

大憨熊 提交于 2019-12-02 03:36:07
I have developed an ontology and I want to add the following SWRL in protege: Divider_intersection(?node), is_extent_of(?node, ?s), builds(?s, ?l),Segment(?s),Lane(?l),detailed_partition(?d), builds(?l, ?d)-> is_divided_at(?d, ?node) with this I wish to add an object property, is_divided_at, between an individual from detailed_partition (?d) and a node that is classified as a divider_intersection if it is the extent of a segment (?s) that build a lane (?l) which then build the detailed?partition (?d). As noted here, I am looking for NamedIndividuals, hence I presume the SWRL should do the job.

OWL: How to get inheritance of property relations between two classes from those of superclasses?

懵懂的女人 提交于 2019-12-02 01:23:22
Let's say we have two classes named People and Disease . These classes are related by the Object Property has . :People :has :Disease People has subclass (or individual) John , and Disease has subclass (or individual) Cancer . :John a :People :Cancer a :Disease How can we get the relationship between these subclasses by inference? :John :has :Cancer Before you can get to an answer, there are a number of misconceptions you'll need to resolve. First, subclass and individual are very different concepts. Individuals (instances) are members of classes. Subclass denotes a class is a subset of

Protege exactly 1 cardinality OWL restriction not raising an inconsistency

泄露秘密 提交于 2019-12-02 00:03:41
I think I am going crazy! I have followed the various tutorials for Owl and Protege and still cannot figure out the answer. Use case is simple. I have defined a class called ‘Person’. I have defined a data property called hasFirstName. I have added a ‘subclass of’ restriction to Person like this : ‘hasFirstName exactly 1 string’. I have also added an individual called Alex of type Person, and have not added the hasFirstName property. I expect the reasoner to complain as I have specified the cardinality of 1, and asserted that Alex is a Person, but have not added the property value to Alex