Re: Safe delete & insert with Fuseki

2022-03-26 Thread Andy Seaborne
If you put all the changes in one update request, they will be done atomically. DELETE { ... } WHERE { ... } ; INSERT DATA { ... } Also, the WHERE clause in a DELETE-INSERT-WHERE can be used to "switch off" an operation. Andy On 24/03/2022 13:17, Mikael Pesonen wrote: We have

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

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

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