public Builder withNamespaces(Namespaces [] namespaces) { checkNotNull(namespaces); for(Namespaces ns : namespaces) { withPrefixNamePrefix(ns.getPrefixName() + ":", ns.getPrefixIRI()); } return this; }
DataRangeType(@Nonnull String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
/** * Adds well known prefixes (defined in the {@link Namespaces} enum in the OWL API) to this renderer. */ public Builder withWellKnownPrefixes() { Arrays.stream(Namespaces.values()) .forEach(ns -> withPrefix(ns.getPrefixName() + ":", ns.getPrefixIRI())); return this; }
ClassExpressionType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
DataRangeType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
ClassExpressionType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
private void with(Namespaces ns) { withPrefix(ns.getPrefixName() + ":", ns.getPrefixIRI()); } }
DataRangeType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
ClassExpressionType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
DataRangeType(String name) { this.name = name; prefixedName = Namespaces.OWL.getPrefixName() + ':' + name; iri = IRI.create(Namespaces.OWL.getPrefixIRI(), name); }
private void addLegacyMapping(OWLRDFVocabulary v) { // Map OWL11 to OWL // Map OWL2 to OWL synonymMap.put(IRI.create(OWL2.getPrefixIRI(), v.getShortForm()), v.getIRI()); synonymMap.put(IRI.create(OWL11.getPrefixIRI(), v.getShortForm()), v.getIRI()); }
private void addLegacyMapping(OWLRDFVocabulary v) { // Map OWL11 to OWL // Map OWL2 to OWL synonymMap.put(IRI.create(OWL2.getPrefixIRI(), v.getShortForm()), v.getIRI()); synonymMap.put(IRI.create(OWL11.getPrefixIRI(), v.getShortForm()), v.getIRI()); }
private void addLegacyMapping(OWLRDFVocabulary v) { // Map OWL11 to OWL // Map OWL2 to OWL synonymMap.put(IRI.create(OWL2.getPrefixIRI(), v.getShortForm()), v.getIRI()); synonymMap.put(IRI.create(OWL11.getPrefixIRI(), v.getShortForm()), v.getIRI()); }
private void addLegacyMapping(OWLRDFVocabulary v) { // Map OWL11 to OWL // Map OWL2 to OWL synonymMap.put(IRI.create(OWL2.getPrefixIRI(), v.getShortForm()), v.getIRI()); synonymMap.put(IRI.create(OWL11.getPrefixIRI(), v.getShortForm()), v.getIRI()); }
private void setupSynonymMap() { // We can load legacy ontologies by providing synonyms for built in // vocabulary // where the vocabulary has simply changed (e.g. DAML+OIL -> OWL) synonymMap.clear(); // Legacy protege-owlapi representation of QCRs synonymMap.put(IRI.create(OWL.getPrefixIRI(), "valuesFrom"), OWL_ON_CLASS.getIRI()); if (!configuration.isStrict()) { addDAMLOILVocabulary(); addIntermediateOWLSpecVocabulary(); } }
private void setupSynonymMap() { // We can load legacy ontologies by providing synonyms for built in // vocabulary // where the vocabulary has simply changed (e.g. DAML+OIL -> OWL) synonymMap.clear(); // Legacy protege-owlapi representation of QCRs synonymMap.put(IRI.create(OWL.getPrefixIRI(), "valuesFrom"), OWL_ON_CLASS.getIRI()); if (!configuration.isStrict()) { addDAMLOILVocabulary(); addIntermediateOWLSpecVocabulary(); } }
private void setupSynonymMap() { // We can load legacy ontologies by providing synonyms for built in // vocabulary // where the vocabulary has simply changed (e.g. DAML+OIL -> OWL) synonymMap.clear(); // Legacy protege-owlapi representation of QCRs synonymMap.put(IRI.create(OWL.getPrefixIRI(), "valuesFrom"), OWL_ON_CLASS.getIRI()); if (!configuration.isStrict()) { addDAMLOILVocabulary(); addIntermediateOWLSpecVocabulary(); } }
private void setupSynonymMap() { // We can load legacy ontologies by providing synonyms for built in // vocabulary // where the vocabulary has simply changed (e.g. DAML+OIL -> OWL) synonymMap.clear(); // Legacy protege-owlapi representation of QCRs synonymMap.put(IRI.create(OWL.getPrefixIRI(), "valuesFrom"), OWL_ON_CLASS.getIRI()); if (!configuration.isStrict()) { addDAMLOILVocabulary(); addIntermediateOWLSpecVocabulary(); } }
public void initialise() { for(Namespaces ns : Namespaces.values()) { String prefixName = ns.getPrefixName(); String prefixIRI = ns.getPrefixIRI(); prefixManager.setPrefix(prefixName + ":", prefixIRI); } PrefixManager localPrefixes = PrefixUtilities.getPrefixOWLOntologyFormat(getOWLModelManager()); for(String prefixName : localPrefixes.getPrefixNames()) { String prefixIRI = localPrefixes.getPrefix(prefixName); prefixManager.setPrefix(prefixName, prefixIRI); } }
public void initialise() { for(Namespaces ns : Namespaces.values()) { String prefixName = ns.getPrefixName(); String prefixIRI = ns.getPrefixIRI(); prefixManager.setPrefix(prefixName + ":", prefixIRI); } PrefixManager localPrefixes = PrefixUtilities.getPrefixOWLOntologyFormat(getOWLModelManager()); for(String prefixName : localPrefixes.getPrefixNames()) { String prefixIRI = localPrefixes.getPrefix(prefixName); prefixManager.setPrefix(prefixName, prefixIRI); } }