private void loadBuiltInDublinCoreVocabulary() { for(DublinCoreVocabulary v : DublinCoreVocabulary.values()) { shortFormCache.put(entityProvider.getOWLAnnotationProperty(v.getIRI()), v.getPrefixedName()); } }
@Override public IRI apply(DublinCoreVocabulary arg0) { return verifyNotNull(arg0).getIRI(); } }));
private void setupBuiltinObjectRenderings(OWLOntology rootOntology) { OWLDataFactory df = rootOntology.getOWLOntologyManager().getOWLDataFactory(); for(IRI iri : OWLRDFVocabulary.BUILT_IN_ANNOTATION_PROPERTY_IRIS) { delegate.add(df.getOWLAnnotationProperty(iri)); } delegate.add(df.getOWLThing()); delegate.add(df.getOWLNothing()); delegate.add(df.getOWLTopObjectProperty()); delegate.add(df.getOWLBottomObjectProperty()); delegate.add(df.getOWLBottomDataProperty()); delegate.add(df.getOWLBottomDataProperty()); for(OWL2Datatype datatype : OWL2Datatype.values()) { delegate.add(df.getOWLDatatype(datatype.getIRI())); } for(DublinCoreVocabulary vocabulary : DublinCoreVocabulary.values()) { delegate.add(df.getOWLAnnotationProperty(vocabulary.getIRI())); } for(OWLAnnotationProperty annotationProperty : SKOSVocabulary.getAnnotationProperties(df)) { delegate.add(annotationProperty); } }
public IRI getCreatedByAnnotationPropertyIRI() { return getIRI(CREATED_BY_ANNOTATION_PROPERTY_IRI_KEY, DublinCoreVocabulary.CREATOR.getIRI()); }
private static OWLAnnotationProperty getOwlAnnotationProperty(String text, OWLModelManager modelManager) { for(DublinCoreVocabulary dc : DublinCoreVocabulary.values()) { if(dc.getPrefixedName().equals(text) || text.equals(dc.getIRI().toString())) { return modelManager.getOWLDataFactory().getOWLAnnotationProperty(dc.getIRI()); } } return modelManager.getOWLEntityFinder().getOWLAnnotationProperty(text); }
public IRI getCreationDateAnnotationPropertyIRI() { return getIRI(CREATION_DATE_ANNOTATION_PROPERTY_IRI_KEY, DublinCoreVocabulary.DATE.getIRI()); }
private static OWLAnnotationProperty getOwlAnnotationProperty(String text, OWLModelManager modelManager) { for(DublinCoreVocabulary dc : DublinCoreVocabulary.values()) { if(dc.getPrefixedName().equals(text) || text.equals(dc.getIRI().toString())) { return modelManager.getOWLDataFactory().getOWLAnnotationProperty(dc.getIRI()); } } return modelManager.getOWLEntityFinder().getOWLAnnotationProperty(text); }
public IRI getCreatedByAnnotationPropertyIRI() { return getIRI(CREATED_BY_ANNOTATION_PROPERTY_IRI_KEY, DublinCoreVocabulary.CREATOR.getIRI()); }
public void initialise() { for(OWLRDFVocabulary vocabulary : OWLRDFVocabulary.values()) { addOWLRDFVocabulary(vocabulary); } for(OWL2Datatype dt : OWL2Datatype.values()) { wellKnownRenderings.put(dt.getIRI(), dt.getPrefixedName()); } for(DublinCoreVocabulary dublinCoreVocabulary : DublinCoreVocabulary.values()) { wellKnownRenderings.put(dublinCoreVocabulary.getIRI(), dublinCoreVocabulary.getPrefixedName()); } }
public IRI getCreationDateAnnotationPropertyIRI() { return getIRI(CREATION_DATE_ANNOTATION_PROPERTY_IRI_KEY, DublinCoreVocabulary.DATE.getIRI()); }
public void initialise() { for(OWLRDFVocabulary vocabulary : OWLRDFVocabulary.values()) { addOWLRDFVocabulary(vocabulary); } for(OWL2Datatype dt : OWL2Datatype.values()) { wellKnownRenderings.put(dt.getIRI(), dt.getPrefixedName()); } for(DublinCoreVocabulary dublinCoreVocabulary : DublinCoreVocabulary.values()) { wellKnownRenderings.put(dublinCoreVocabulary.getIRI(), dublinCoreVocabulary.getPrefixedName()); } }
prefsManager.setCreationDateAnnotationPropertyIRI(DublinCoreVocabulary.DATE.getIRI());
prefsManager.setCreationDateAnnotationPropertyIRI(DublinCoreVocabulary.DATE.getIRI());