Re: mesh ontology queries

2024-05-09 Thread Luis Enrique Ramos García
uploaded the MeSH ontology into the default graph or at > least not into a graph with the name `<http://id.nlm.nih.gov/mesh>`. > > From the query editor at https://id.nlm.nih.gov/mesh/query, I see that > they > have different graphs for each year (current = `< > http://id

Re: mesh ontology queries

2024-05-08 Thread Arne Bernhardt
Hi Louis, You might have uploaded the MeSH ontology into the default graph or at least not into a graph with the name `<http://id.nlm.nih.gov/mesh>`. >From the query editor at https://id.nlm.nih.gov/mesh/query, I see that they have different graphs for each year (current

mesh ontology queries

2024-05-08 Thread Luis Enrique Ramos García
I uploaded the mesh ontology in fuseki, but when I try with the query the sample queries recommended in their documentation: https://hhs.github.io/meshrdf/sample-queries I get no results. For instance: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3

Re: Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Yang-Min KIM
You're right, I should have shown you a real concrete example from the beginning. In Biolink Model ontology "has_catalyst" property is defined as below (<https://github.com/biolink/biolink-model/blob/master/biolink-model.owl.ttl>, line 4010): *biol

Re: Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Lorenz Buehmann
Ok, but if your example isn't related to the link, how is the link related to your current issue? Can you share the ontology with the father relation where the inference doesn't work for you? On 06.02.23 10:42, Yang-Min KIM wrote: Le lun., févr. 6 2023 at 10:30:17 +0100, Lorenz Buehmann

Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Dave Reynolds
On 06/02/2023 09:42, Yang-Min KIM wrote: Le lun., févr. 6 2023 at 10:30:17 +0100, Lorenz Buehmann a écrit : SWRL Dear Dave and Lorenz, Thank you for your reply! As I am a beginner in ontology, I do not yet know all the different terms, e.g. SWRL, I'm checking! My exemple (father-child

Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Yang-Min KIM
Le lun., févr. 6 2023 at 10:30:17 +0100, Lorenz Buehmann a écrit : SWRL Dear Dave and Lorenz, Thank you for your reply! As I am a beginner in ontology, I do not yet know all the different terms, e.g. SWRL, I'm checking! My exemple (father-child...etc) is not related to the link (Biolink

Re: Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Lorenz Buehmann
SWRL. If it is SWRL, then you will a) use Pellet as reasoner or b) write that rule as a custom Jena rule As Dave mentioned, you example ontology doesn't cover the domain you describe. At least I could find any entity denoted "father" or similar. Lorenz On 06.02.23 10:19, Dave Reyn

Re: How to implicitly integrate OWL ontology?

2023-02-06 Thread Dave Reynolds
To configure use of a reasoner with fuseki see https://jena.apache.org/documentation/fuseki2/fuseki-configuration.html under the section "Inference". The reasoners are not graph-aware so the union of your ontology and your instance data all need to appear in the default gra

How to implicitly integrate OWL ontology?

2023-02-03 Thread Yang-Min KIM
Dear Jena community, I hope your day is going great. I have a question about the ontology: we want to request an ontoogy data A that also import another ontology OWL-B. e.g. A includes: John is Male. John has a daughter called Monica. OWL-B includes: Daughter

Re: Ontology URI vs document URI

2022-04-03 Thread Martynas Jusevičius
On Fri, Apr 1, 2022 at 1:13 PM Andy Seaborne wrote: > > > > On 26/03/2022 15:46, Martynas Jusevičius wrote: > > Hi, > > > > Using the ontology API, if one owl:imports an ontology URI such as > > <http://www.w3.org/ns/org#> into ontology model, the impo

Re: Ontology URI vs document URI

2022-04-01 Thread Andy Seaborne
On 26/03/2022 15:46, Martynas Jusevičius wrote: Hi, Using the ontology API, if one owl:imports an ontology URI such as <http://www.w3.org/ns/org#> into ontology model, the imported model gets cached under the "http://www.w3.org/ns/org#; key. However, given <http://www

Re: Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
It doesn't look like the ReadHook is applied on the cache key, unfortunately. The problematic OntDocumentManager code is here: https://github.com/apache/jena/blob/main/jena-core/src/main/java/org/apache/jena/ontology/OntDocumentManager.java#L983 On Sat, Mar 26, 2022 at 5:09 PM Martynas

Re: Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
Could OntDocumentManager.ReadHook be used for this? https://jena.apache.org/documentation/javadoc/jena/org/apache/jena/ontology/OntDocumentManager.ReadHook.html On Sat, Mar 26, 2022 at 4:46 PM Martynas Jusevičius wrote: > > Hi, > > Using the ontology API, if one owl:imports an

Ontology URI vs document URI

2022-03-26 Thread Martynas Jusevičius
Hi, Using the ontology API, if one owl:imports an ontology URI such as <http://www.w3.org/ns/org#> into ontology model, the imported model gets cached under the "http://www.w3.org/ns/org#; key. However, given <http://www.w3.org/ns/org#> a owl:Ontology one can ar

Re: How to separate Ontology triples from Instance triples?

2021-09-23 Thread Marc Agate
You might want to use a named graph for the model you want to export... Marc Le 23/09/2021 à 16:18, Simon Gray a écrit : Hi there, Overall really satisfied with Apache Jena! I’m currently constructing an OntModel based on an OntModelSpec which first calls OntModel.read(“…”) a bunch of times

How to separate Ontology triples from Instance triples?

2021-09-23 Thread Simon Gray
Hi there, Overall really satisfied with Apache Jena! I’m currently constructing an OntModel based on an OntModelSpec which first calls OntModel.read(“…”) a bunch of times to load the schemas, adding the base triple data to the graph afterwards. I have successfully managed to get it to infer

Re: Ontology

2021-08-21 Thread Andy Seaborne
a formal ontology. The most you will probably ever need is an RDFS schema, and that mainly for your own understanding, communication, and documentation. Regards. --Paul On 8/19/21 2:30 PM, Matt Whitby wrote: This will be off-topic but I believe you're the best group of people to ask

Re: Ontology

2021-08-20 Thread Phil Shields
Hi I constructed various web applications using ontologies to do stuff. Philip Shields | | | | Philip Shields | | | Phil On Friday, 20 August 2021, 01:49:00 pm AEST, Luis Enrique Ramos García wrote: Hi, I recommend the book Ontology Engineering by Gomez Perez, which

Re: Ontology

2021-08-19 Thread Luis Enrique Ramos García
Hi, I recommend the book Ontology Engineering by Gomez Perez, which is good to begin with. Luis El jue, 19 ago 2021 a las 21:30, Matt Whitby () escribió: > This will be off-topic but I believe you're the best group of people to ask > this to. We need to look at our various datasets and

Re: Ontology

2021-08-19 Thread Paul Tyson
Yes, off-topic, better forums would be ontolog-forum (http://ontologforum.org/info/) and semantic-...@w3.org. But, briefly: I have yet to see a good use case that would justify the expense and trouble of making a formal ontology. The most you will probably ever need is an RDFS schema

Re: Ontology

2021-08-19 Thread graham
Hi Matt What kind of ontology are you envisaging? RDFS? OWL-DL? Natural Language? It can make a difference. Also what is the use case for the ontology? Documentary? Used to query? thanks graham On 20/08/21 7:30 am, Matt Whitby wrote: This will be off-topic but I believe you're the best

Re: Ontology

2021-08-19 Thread Adrian Walker
nglish LLC San Jose, CA, USA 860 830 2085 https://www.executable-english.com On Thu, Aug 19, 2021 at 12:30 PM Matt Whitby wrote: > This will be off-topic but I believe you're the best group of people to ask > this to. We need to look at our various datasets and start to put together > an on

Re: Ontology

2021-08-19 Thread Dave Jordan
: > This will be off-topic but I believe you're the best group of people to ask > this to. We need to look at our various datasets and start to put together > an ontology. Does anyone have any suggestions on books to read, videos to > watch, or any general advice or pitfalls to avoid? > > Thanks, > Matt. >

Ontology

2021-08-19 Thread Matt Whitby
This will be off-topic but I believe you're the best group of people to ask this to. We need to look at our various datasets and start to put together an ontology. Does anyone have any suggestions on books to read, videos to watch, or any general advice or pitfalls to avoid? Thanks, Matt.

Several views of Ontology

2021-05-21 Thread elio hbeich
Dear All, How can I generate a matrix view of an ontology? and how can I manipulate this matrix? Thank you in advance Best Regards Elio

RE: time ontology

2020-09-03 Thread Nouwt, B. (Barry)
2020 22:35 To: users@jena.apache.org Subject: Re: time ontology Hi Barry, From what I can remember the standard was focussed upon providing a vocabularly to represent data rather than defining functionality. You could implement the 'time:after' and 'time:before' as Property Functions

Re: time ontology

2020-09-01 Thread Greg
Time ontology (https://www.w3.org/TR/owl-time/). I especially like the way they have a time:after and time:before object property and I would like to use those as a filter in my SPARQL query (note that I do know the SPARQL FILTER keyword exists that supports datetime comparisons, i.e. FILTER

time ontology

2020-08-31 Thread Nouwt, B. (Barry)
Hi everyone, for a project I have a set of sosa:Observation's and would like to use the elegant W3C Time ontology (https://www.w3.org/TR/owl-time/). I especially like the way they have a time:after and time:before object property and I would like to use those as a filter in my SPARQL query

Re: Ontology mapping

2019-09-26 Thread Claude Warren
pping rules on each > one of them. > by doing so, I keep them independent but at the same time I can query them > both. > > Best regards, > Elio HBEICH > > On Wed, Sep 25, 2019 at 5:27 PM Claude Warren wrote: > > > I am not certain exactly what you are asking. Are

Re: Ontology mapping

2019-09-26 Thread Lorenz Buehmann
EICH > > On Wed, Sep 25, 2019 at 5:27 PM Claude Warren wrote: > >> I am not certain exactly what you are asking. Are you asking how to create >> an ontology that maps different names for the same concept together (eg. >> molecular weight -vs- compound weight) so that you can q

Re: Ontology mapping

2019-09-26 Thread elio hbeich
you are asking. Are you asking how to create > an ontology that maps different names for the same concept together (eg. > molecular weight -vs- compound weight) so that you can query across them? > > If so the only examples I know of are > > BioFed: > > https://www.r

Re: Ontology mapping

2019-09-25 Thread Claude Warren
I am not certain exactly what you are asking. Are you asking how to create an ontology that maps different names for the same concept together (eg. molecular weight -vs- compound weight) so that you can query across them? If so the only examples I know of are BioFed: https

Re: Ontology

2019-02-19 Thread ajs6f
model or tdb database. > It > will auto link.'' > > On Mon, Feb 18, 2019 at 12:49 PM Siddhesh Rane wrote: > >> The question is a little ambiguous but what I understand is >> - you have a citygml file containing an example city that you have exported >> to rdf.

Re: Ontology

2019-02-18 Thread elio hbeich
xample city that you have exported > to rdf. > - an ontology (say owl format) for CityGML standard. > > If you want to link the two, simply add both to a model or tdb database. It > will auto link. > > If however you want to create an ontology, then possibly look at >

Re: Ontology

2019-02-18 Thread Siddhesh Rane
The question is a little ambiguous but what I understand is - you have a citygml file containing an example city that you have exported to rdf. - an ontology (say owl format) for CityGML standard. If you want to link the two, simply add both to a model or tdb database. It will auto link

Ontology

2019-02-18 Thread elio hbeich
Dear All, I am trying to convert a gml file (building, bridge, etc.) from CityGML to rdf. So first i have convert it to CSV bu using geoconverter. Than i transform the generated file to RDF by using OpenRefine. I already have the ontology (building for example) i need to tranport the information

Re: Is it possible to infer new knowledge about an ontology only from a query in SPARQL?

2018-12-06 Thread Manuel Puebla
order logic, rather than> > statistical inference, but it is still powerful. It means that you can> > discovery surprising things about your data simply using your ontology> > (which describes how classes relate to each other).> > > On Wed, Dec 5, 2018 at 11:16 AM Manuel

Re: Is it possible to infer new knowledge about an ontology only from a query in SPARQL?

2018-12-05 Thread Dan Davis
that you can discovery surprising things about your data simply using your ontology (which describes how classes relate to each other). On Wed, Dec 5, 2018 at 11:16 AM Manuel Enrique Puebla Martinez < mpue...@uci.cu> wrote: > > Hello: > > Is it possible to infer new knowledge abou

Re: Is it possible to infer new knowledge about an ontology only from a query in SPARQL?

2018-12-05 Thread Andy Seaborne
reate data with assignments: SELECT ?s ?w { ?s :p ?v . BIND( ?v +1 AS ?w) } That's more like a simple business rule than ontology. Andy On 05/12/2018 16:15, Manuel Enrique Puebla Martinez wrote: Hello: Is it possible to infer new knowledge about an ontology only from a query in SPARQ

Is it possible to infer new knowledge about an ontology only from a query in SPARQL?

2018-12-05 Thread Manuel Enrique Puebla Martinez
Hello: Is it possible to infer new knowledge about an ontology only from a query in SPARQL? I have a question about the use of the SPARQL language about ontologies. So far I have thought that SPARQL is the equivalent to the SQL language in the relational databases, that is to say

Re: feature subset selection using Ontology

2018-08-09 Thread Lorenz Buehmann
> by yourself. >> >> >> On 09.08.2018 09:08, javed khan wrote: >>> Hello Lorenz sorry for inconvenience. >>> >>> Suppose we have a dataset about software effort estimation which have >> about >>> 100 attributes (line of code, complexit

Re: feature subset selection using Ontology

2018-08-09 Thread javed khan
tes (line of code, complexity etc). To extract the subset of > > features (as all 100 attributes are not important), we usually used some > > data mining algorithms (Genetic algorithm etc). Now I want to make these > > attributes as Ontology and get the attributes via SPARQL but not sure

Re: feature subset selection using Ontology

2018-08-09 Thread Lorenz Buehmann
ftware effort estimation which have about > 100 attributes (line of code, complexity etc). To extract the subset of > features (as all 100 attributes are not important), we usually used some > data mining algorithms (Genetic algorithm etc). Now I want to make these > attribute

Re: feature subset selection using Ontology

2018-08-09 Thread javed khan
algorithm etc). Now I want to make these attributes as Ontology and get the attributes via SPARQL but not sure how can I select the most appropriate features using SPARQL (because the Genetic algorithm and other select the most appropriate features automatically). Best regards On Thu, Aug 9, 2018 at 7

Re: feature subset selection using Ontology

2018-08-08 Thread Lorenz Buehmann
s ( for data mining) , can we > do it using Semantic Web technologies like Ontology and SPARQL. ? > > Thanks >

feature subset selection using Ontology

2018-08-08 Thread javed khan
Hello For instance, we have to select some features ( for data mining) , can we do it using Semantic Web technologies like Ontology and SPARQL. ? Thanks

Getting URI of the ontology from ontology model

2018-07-31 Thread Alex To
Hi May I know what is the best way to get the URI of an ontology. I have looked at this page creating-ontology-models <https://jena.apache.org/documentation/ontology/#creating-ontology-models> and this page OntDocumentManager <https://jena.apache.org/documentation/javadoc/jena/org/ap

Re: Clearing and reloading ontology and its imports

2018-04-08 Thread Dave Reynolds
shown is executed, there are inconsistencies in models for the same ontology but accessed in different ways: ontology.getOntModel().getOntology(" https://localhost:4443/demo/iswc-2017/ns/templates# ").listImports().toList().toString() [http://atomgraph.com/ns/platform/templat

Re: Clearing and reloading ontology and its imports

2018-04-07 Thread Martynas Jusevičius
in models for the same ontology but accessed in different ways: ontology.getOntModel().getOntology(" https://localhost:4443/demo/iswc-2017/ns/templates# ").listImports().toList().toString() [http://atomgraph.com/ns/platform/templates#, https://www.w3.org/ns/ldt/core

Clearing and reloading ontology and its imports

2018-04-06 Thread Martynas Jusevičius
Hi, we have an ontology editor that stores ontologies and their terms in a triplestore. On the other end, they are being loaded by OntDocumentManager. The question is: what is the proper way to clear and reload an ontology and its imports in OntDocumentManager? Because, for example, a user

Re: Speed issue while processing query resultSets on various ontology models

2018-03-15 Thread Dave Reynolds
and 190ms with OWLMicro, which is the reasoner profile that's generally closest to being practical. [OWLMini is even slower than the full OWL rule set in this case.] Note that that ontology is OWL 2 which Jena doesn't support. Dave On 14/03/18 20:34, Marc Agate wrote: Hi, owlURL is the url

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Marc Agate
Hi, owlURL is the url of the bdrc.owl file that is used to create the Ontology model. public static final String owlURL="https://raw.githubusercontent.com/Bu ddhistDigitalResourceCenter/owl-schema/master/bdrc.owl";   Marc Le mercredi 14 mars 2018 à 20:25 +, Andy Seabor

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Andy Seaborne
On 14/03/18 19:12, Élie Roux wrote: In the case of inference then yes there is also an upfront cost of computing the inferences.  Once computed these are typically cached (though this depends on the rule set) and any changes to the data might invalidate that cache.  You can call prepare() on

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Élie Roux
In the case of inference then yes there is also an upfront cost of computing the inferences. Once computed these are typically cached (though this depends on the rule set) and any changes to the data might invalidate that cache. You can call prepare() on the InfModel to incur the initial

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Rob Vesse
to happen > > So what you are timing as the results processing is actually results > processing + query execution. Over an inference model the act of > executing a query will cause inference rules to be applied which > depending on the ontology and rules may take

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Marc Agate
act of > executing a query will cause inference rules to be applied which > depending on the ontology and rules may take a long time. > > Rob > > On 14/03/2018, 16:26, "agate.m...@gmail.com" <agate.m...@gmail.com> > wrote: > > Hi, > > I ha

Re: Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread Rob Vesse
an inference model the act of executing a query will cause inference rules to be applied which depending on the ontology and rules may take a long time. Rob On 14/03/2018, 16:26, "agate.m...@gmail.com" <agate.m...@gmail.com> wrote: Hi, I have included here (https:/

Speed issue while processing query resultSets on various ontology models

2018-03-14 Thread agate . marc
Hi, I have included here (https://gist.github.com/MarcAgate/8bbe334fd852817977c909af107a9c6b) some code tha illustrates the issue. It runs the same query against three different models (Model, InfModel and OntModel) of the same ontology. There's obviously a problem with InfModel. Any idea

AW: How to get the ontology header

2017-11-28 Thread Jos Lehmann
It worked, thanks -- esp. for the documentation reference. Jos -Ursprüngliche Nachricht- Von: Lorenz Buehmann [mailto:buehm...@informatik.uni-leipzig.de] Gesendet: Dienstag, 28. November 2017 14:00 An: users@jena.apache.org Betreff: Re: How to get the ontology header I guess

Re: How to get the ontology header

2017-11-28 Thread Lorenz Buehmann
I guess this is explained in the documentation [1] Basically, the ontology object would be the triple subject, and as the information are annotations, it's encoded via simple triples with the annotation property beeing the predicate. [1] https://jena.apache.org/documentation/ontology/#ontology

How to get the ontology header

2017-11-28 Thread Jos Lehmann
Hi there How by using jena do I get and print on the console the ontology header, i.e. the annotation that in Protege are listed as Ontology header in tab Active Ontology? Thanks, Jos

Re: Query about Jena Ontology.

2017-06-29 Thread Andy Seaborne
On 29/06/17 07:32, Vivek Maturu wrote: Hello!, I am Vivek, I am working on DogOnt Ontology. My question is whether I can directly copy the code from that ontology file into Jena workspace? DogOnt file is in .owl format. Does Jena support that type of files? Hi Vivek, The "

Re: [!!Mass Mail]Re: Ontology Imports

2017-04-09 Thread Andy Seaborne
not inspect the Content-Type returned from the server. Code to load the Ontology from disk: import org.apache.jena.ontology.OntModel; import org.apache.jena.rdf.model.Model; import org.apache.jena.rdf.model.ModelFactory; public class App { public static void main(String[] args) { try { OntModel

RE: [!!Mass Mail]Re: Ontology Imports

2017-04-03 Thread Donald Smith
and external ontologies. I was expecting the following code to work in a similar manner. It appears however that Model.read expects imported ontologies to be of type rdf xml and does not inspect the Content-Type returned from the server. Code to load the Ontology from disk: import

Re: Ontology Imports

2017-04-02 Thread Lorenz B.
which is a very different semantic? > > --- > A. Soroka > The University of Virginia Library > >> On Mar 31, 2017, at 2:38 PM, Donald Smith <donald.sm...@argodata.com> wrote: >> >> RDFDataMgr does fine while loading a given RDF file, but what I'm trying to >> do is t

Re: [!!Mass Mail]Re: Ontology Imports

2017-04-02 Thread Donald Smith
If http://example.com/ExampleOntology.owl is in the document manage cache, > the code may be confused and using ".owl" as the syntax indicator (that gets > to RDF/XML). > > Or it may be processing the HTML 404 error page and "Content-Type: text/html" > i

Re: Ontology Imports

2017-04-02 Thread Andy Seaborne
text/html" is taken as definitive. Andy The proper way IMO is to have a location-mapping and read ontology (namespace) URI, not physical file URIs, and let LocationMapper take care of the rest. https://jena.apache.org/documentation/notes/file-manager.html On Fri, Mar 31, 2017

Re: Ontology Imports

2017-04-02 Thread A. Soroka
7, at 2:38 PM, Donald Smith <donald.sm...@argodata.com> wrote: > > RDFDataMgr does fine while loading a given RDF file, but what I'm trying to > do is to use OntModel to read an ontology from local disk which would intern > fetch the imported ontologies. For any imported ontol

Re: Ontology Imports

2017-03-31 Thread Martynas Jusevičius
Some of the code (at least OntDocumentManager) is still using FileManager I believe. The proper way IMO is to have a location-mapping and read ontology (namespace) URI, not physical file URIs, and let LocationMapper take care of the rest. https://jena.apache.org/documentation/notes/file

RE: Ontology Imports

2017-03-31 Thread Donald Smith
RDFDataMgr does fine while loading a given RDF file, but what I'm trying to do is to use OntModel to read an ontology from local disk which would intern fetch the imported ontologies. For any imported ontology that is fetched via HTTP that is returned as RDF/XML works fine. For any imported

Re: Ontology Imports

2017-03-30 Thread Dave Reynolds
On 29/03/17 20:54, Donald Smith wrote: Given I have an ontology that imports one or more other ontologies, when I read that ontology: model.read("http://example.com/ExampleOntology.owl;, "TURTLE"); That should be "Turtle" or, better, RDFLanguages.strLangTu

Ontology Imports

2017-03-29 Thread Donald Smith
Given I have an ontology that imports one or more other ontologies, when I read that ontology: model.read("http://example.com/ExampleOntology.owl;, "TURTLE"); I get the exception: 2017-03-29 14:41:04 WARN OntDocumentManager:1076 - An error occurred while attempting to

Same ontology?

2017-02-24 Thread Jos Lehmann
Hi there As per previous email, I am working on a piece of code that: (i) re-writes an ontology, by keeping some of it unchanged, while changing parts of it; (ii) re-writes the output of (i) and outputs the input of (i). I.e., full circle. After completion of (ii) above, I compare

Re: AW: AW: Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-17 Thread Lorenz B.
gt; > Thanks, Jos > > > -Ursprüngliche Nachricht- > Von: Lorenz B. [mailto:buehm...@informatik.uni-leipzig.de] > Gesendet: Dienstag, 17. Januar 2017 13:57 > An: users@jena.apache.org > Betreff: Re: AW: Listing all individuals of an ontology, including those >

AW: AW: Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-17 Thread Jos Lehmann
Hi Lorenz I see -- how should the URI be given? Thanks, Jos -Ursprüngliche Nachricht- Von: Lorenz B. [mailto:buehm...@informatik.uni-leipzig.de] Gesendet: Dienstag, 17. Januar 2017 13:57 An: users@jena.apache.org Betreff: Re: AW: Listing all individuals of an ontology, including those

Re: AW: Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-17 Thread Lorenz B.
It does but not if the URI are given as you've shown. Both URIs can't be resolved to ontology files. > Hi Andreas, > > Yes, I had not read in the import ontology. I thought that would be > automatic. > > Thanks, Jos > > > -Ursprüngliche Nachricht- >

AW: Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-17 Thread Jos Lehmann
Hi Andreas, Yes, I had not read in the import ontology. I thought that would be automatic. Thanks, Jos -Ursprüngliche Nachricht- Von: Andreas Prieß [mailto:a...@metaphysis.net] Gesendet: Samstag, 14. Januar 2017 19:47 An: users@jena.apache.org Betreff: Re: Listing all individuals

Re: Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-14 Thread Andreas Prieß
Hi, you probably should check explicitly whether the second ontology was actually imported. Have a look at OntModel.hasLoadedImport(String uri) or OntModel.listSubModels(boolean withImports) I suppose there is a problem importing the second ontology since the URL seems not to be resolvable

Listing all individuals of an ontology, including those defined in the ontology as individuals of classes coming from import ontology

2017-01-12 Thread Jos Lehmann
Hi there SITUATION -- A I am working with ontology L (denoted as Ontology_input_file in Code below) with URI: http://www.b-l.net/ontologies/2016/L_Ontology.owl# -- B This ontology imports an ontology PS with URI: http://www.b-l.net/ontologies/2016/PS_Ontology.owl# Note that I have added

Re: Fetch value from ontology

2016-10-21 Thread Lorenz B.
g.No==2 > fetch name of student > In this case, which name value will be extracted from the ontology? > Rohit, kumar, or both? > -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center

Fetch value from ontology

2016-10-21 Thread kumar rohit
I have student Reg.No and name property. Reg.No Name 1 Rohit 2 Kumar Then, if I use as: if (Reg.No==1) OR Reg.No==2 fetch name of student In this case, which name value will be extracted from the ontology? Rohit, kumar, or both?

Re: Overwrite data of ontology

2016-09-27 Thread kumar rohit
Not typo, my data property in ontology was the same I used in Jena code but I just made a change in its spelling to check it works or not and luckily it worked. On Tue, Sep 27, 2016 at 12:26 AM, Lorenz B. < buehm...@informatik.uni-leipzig.de> wrote: > So it was a typo in the end. > &

Re: Overwrite data of ontology

2016-09-27 Thread Lorenz B.
a >> different property than the one you have declared. >> >> Again, to get help you need to provide a complete, minimal example. >> >> In this case you need a single generated ontology file with the >> DatatypeProperty declaration and the instance with the corresponding

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
; > wrote: > > > >> Hello Dave, I have Item as data type property in my Protege ontology. > >> > >> On Mon, Sep 26, 2016 at 9:28 AM, Dave Reynolds < > dave.e.reyno...@gmail.com> > >> wrote: > >> > >>> On 26/09/16 16:59, kum

Re: Overwrite data of ontology

2016-09-26 Thread Lorenz Buehmann
Item as data type property in my Protege ontology. >> >> On Mon, Sep 26, 2016 at 9:28 AM, Dave Reynolds <dave.e.reyno...@gmail.com> >> wrote: >> >>> On 26/09/16 16:59, kumar rohit wrote: >>> >>>> I have already tried this: >>>> >>

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
lete, minimal example. > > In this case you need a single generated ontology file with the > DatatypeProperty declaration and the instance with the corresponding value > as generated by your Jena code. > > Then if the ontology files looks correct but doesn't show in protege how >

Re: Overwrite data of ontology

2016-09-26 Thread Dave Reynolds
is whether you are using the correct URI. If you have the wrong value in the "ns" variable then you might be adding a different property than the one you have declared. Again, to get help you need to provide a complete, minimal example. In this case you need a single generated ont

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
May I know why this occurs usually (save data as Annotations)? I wonder what mistake I have actually done to encounter this.? On Mon, Sep 26, 2016 at 10:22 AM, kumar rohit <kumar.en...@gmail.com> wrote: > Hello Dave, I have Item as data type property in my Protege ontology. > >

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
Hello Dave, I have Item as data type property in my Protege ontology. On Mon, Sep 26, 2016 at 9:28 AM, Dave Reynolds <dave.e.reyno...@gmail.com> wrote: > On 26/09/16 16:59, kumar rohit wrote: > >> I have already tried this: >> >> DatatypeProperty item= mode

Re: Overwrite data of ontology

2016-09-26 Thread Dave Reynolds
On 26/09/16 16:59, kumar rohit wrote: I have already tried this: DatatypeProperty item= model.getDatatypeProperty(ns+"Item"); If the URI ns+"Item" is not already declared as a DatatypeProperty in your ontology then you'll need model.createDatatypeProperty so as to s

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
s I said in my previous answer?... > OWL has object property and data property, thus, why don't you call > > model.getDatatypeProperty(ns+"ItemPrice") > > For object properties the same: > model.getObjectProperty(String uri) > > [1] https://jena.apache.org/doc

Re: Overwrite data of ontology

2016-09-26 Thread Lorenz Buehmann
and data property, thus, why don't you call model.getDatatypeProperty(ns+"ItemPrice") For object properties the same: model.getObjectProperty(String uri) [1] https://jena.apache.org/documentation/ontology/#ontology-properties > customer.setPropertyValue(price, res); > > On Mon,

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
"ItemPrice"); customer.setPropertyValue(price, res); On Mon, Sep 26, 2016 at 5:20 AM, Lorenz B. < buehm...@informatik.uni-leipzig.de> wrote: > Yes, in that case it is supposed to be an RDF property, thus not typed > as expected to be in an OWL ontology. > > I used OntModel

Re: Overwrite data of ontology

2016-09-26 Thread Lorenz B.
Yes, in that case it is supposed to be an RDF property, thus not typed as expected to be in an OWL ontology. > I used OntModel as model to read the ontology but used Property instead of > OntProperty, is this an issue? > > On Mon, Sep 26, 2016 at 4:34 AM, Lorenz B. < > buehm

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
I used OntModel as model to read the ontology but used Property instead of OntProperty, is this an issue? On Mon, Sep 26, 2016 at 4:34 AM, Lorenz B. < buehm...@informatik.uni-leipzig.de> wrote: > For Protege it MUST be an OWL data property, otherwise the OWL API > parser will tre

Re: Overwrite data of ontology

2016-09-26 Thread Lorenz B.
For Protege it MUST be an OWL data property, otherwise the OWL API parser will treat it as OWL annotation property. This has to be explicitly declared in the ontology, the easiest way in Jena would be to use an OntModel > Yes Lorenz sir I have written it to disk but it writes the d

Re: Overwrite data of ontology

2016-09-26 Thread A. Soroka
gt;>> Please learn to read the Javadoc [1] if you're programming in Java... >>>> >>>> And using an IDE would also help, usually this is able to show you the >>>> arguments and it's expected types. >>>> >>>> >>>> [1] >

Re: Overwrite data of ontology

2016-09-26 Thread kumar rohit
adoc [1] if you're programming in Java... > >> > >> And using an IDE would also help, usually this is able to show you the > >> arguments and it's expected types. > >> > >> > >> [1] > >> https://jena.apache.org/documentation/javadoc/jen

Re: Overwrite data of ontology

2016-09-25 Thread Lorenz B.
o show you the >> arguments and it's expected types. >> >> >> [1] >> https://jena.apache.org/documentation/javadoc/jena/ >> org/apache/jena/ontology/OntResource.html >> >>> I used this: customer.setPropertyValue(property, pricevariable); >

  1   2   3   >