On 07/08/2024 20:41, Andy Seaborne wrote:
On 07/08/2024 12:15, Steve Vestal wrote:
I have some questions about doing an OWL import closure. My
understanding is that an Import for an owl:Ontology can use any of a
URL, an ontology IRI, or a version IRI to access an OWL document.
Different documents that have the same ontology IRI may be accessed
using different URLs, either identical copies or with different
version IRIs.
The link given on the page https://jena.apache.org/documentation/
ontology/#graphrepository (https://jena.apache.org/documentation/
javadoc/jena/org.apache.jena.ontapi/org/apache/jena/ontapi/
GraphRepository.html) gets a "URL was not found" error. A search
didn't turn it up. What package contains this class?
Artifact jena-ontapi
package org.apache.jena.ontapi
Its only that the website page that has the wrong links.
Fixed!
The OntAPI javadoc is at:
https://jena.apache.org/documentation/javadoc/ontapi/
org.apache.jena.ontapi/module-summary.html
That page says "By default, when an ontology model reads an ontology
document, it will/not/locate and load the document’s imports." A
search of this page did not find OntDocumentManager, which I have been
using. FileManager seems to be deprecated in favor of RDFDataMgr.
Will OntDocumentManager be deprecated or modified?
What is the recommended way to accumulate a set of URLs, ontology
IRIs, and version IRIs, and use that set to do an import closure?
https://jena.apache.org/documentation/ontology/#compound-ontology-
documents-and-imports-processing
Three argument call to (the new)
OntModelFactory.createModel(,, GraphRepository)
Andy