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 > > into ontology model, the imported model > > gets cached under the

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 into ontology model, the imported model gets cached under the "http://www.w3.org/ns/org#; key. However, given

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 such

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 into ontology model, the imported model gets cached under the "http://www.w3.org/ns/org#; key. However, given a owl:Ontology one can argue that this URI is of the