SKOSClassTripleHandler(OWLRDFConsumer consumer, SKOSVocabulary v) { super(consumer, v.getIRI()); }
private void loadBuiltInSkosVocabulary() { for(SKOSVocabulary v : SKOSVocabulary.values()) { if (v.getEntityType().equals(ANNOTATION_PROPERTY)) { shortFormCache.put(entityProvider.getOWLAnnotationProperty(v.getIRI()), v.getPrefixedName()); } } }
private static Stream<SKOSVocabulary> stream() { return Stream.of(values()); }
public static OWLAnnotationPropertyData getSkosPrefLabelData() { return OWLAnnotationPropertyData.get( dataFactory.getOWLAnnotationProperty(SKOSVocabulary.PREFLABEL.getIRI()), SKOSVocabulary.PREFLABEL.getPrefixedName(), ImmutableMap.of() ); } }
/** * @param dataFactory data factory to use * @return set of SKOS data properties */ public static Set<OWLDataProperty> getDataProperties(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(DATA_PROPERTY)) .map(v -> dataFactory.getOWLDataProperty( v.iri))); }
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); } }
private static Stream<SKOSVocabulary> stream() { return Stream.of(values()); }
/** * @param dataFactory data factory to use * @return set of SKOS annotation properties */ public static Set<OWLAnnotationProperty> getAnnotationProperties( AnnotationPropertyProvider dataFactory) { return asSet( stream().filter(v -> v.entityType.equals(ANNOTATION_PROPERTY)).map(v -> dataFactory .getOWLAnnotationProperty(v.iri))); }
SKOSClassTripleHandler(OWLRDFConsumer consumer, SKOSVocabulary v) { super(consumer, v.getIRI()); }
private static Stream<SKOSVocabulary> stream() { return Stream.of(values()); }
/** * @param dataFactory data factory to use * @return set of SKOS annotation properties */ public static Set<OWLAnnotationProperty> getAnnotationProperties( AnnotationPropertyProvider dataFactory) { return asSet( stream().filter(v -> v.entityType.equals(ANNOTATION_PROPERTY)).map(v -> dataFactory .getOWLAnnotationProperty(v.iri))); }
SKOSClassTripleHandler(OWLRDFConsumer consumer, SKOSVocabulary v) { super(consumer, v.getIRI()); }
public static Set<OWLObjectProperty> getObjectProperties(OWLDataFactory dataFactory) { Set<OWLObjectProperty> result = new HashSet<OWLObjectProperty>(); for(SKOSVocabulary v : values()) { if(v.entityType.equals(EntityType.OBJECT_PROPERTY)) { result.add(dataFactory.getOWLObjectProperty(v.iri)); } } return result; }
/** * @param dataFactory data factory to use * @return set of SKOS annotation properties */ public static Set<OWLAnnotationProperty> getAnnotationProperties( AnnotationPropertyProvider dataFactory) { return asSet( stream().filter(v -> v.entityType.equals(ANNOTATION_PROPERTY)).map(v -> dataFactory .getOWLAnnotationProperty(v.iri))); }
public SKOSClassTripleHandler(OWLRDFConsumer consumer, SKOSVocabulary v) { super(consumer, v.getIRI()); }
public static Set<OWLAnnotationProperty> getAnnotationProperties(OWLDataFactory dataFactory) { Set<OWLAnnotationProperty> result = new HashSet<OWLAnnotationProperty>(); for(SKOSVocabulary v : values()) { if(v.entityType.equals(EntityType.ANNOTATION_PROPERTY)) { result.add(dataFactory.getOWLAnnotationProperty(v.iri)); } } return result; }
/** * @param dataFactory data factory to use * @return set of SKOS object properties */ public static Set<OWLObjectProperty> getObjectProperties(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(OBJECT_PROPERTY)).map(v -> dataFactory .getOWLObjectProperty(v.iri))); }
public SKOSObjectTripleHandler(OWLRDFConsumer consumer, SKOSVocabulary predicate) { super(consumer, predicate.getIRI()); }
public static Set<OWLClass> getClasses(OWLDataFactory dataFactory) { Set<OWLClass> result = new HashSet<OWLClass>(); for(SKOSVocabulary v : values()) { if(v.entityType.equals(EntityType.CLASS)) { result.add(dataFactory.getOWLClass(v.iri)); } } return result; }
/** * @param dataFactory data factory to use * @return set of SKOS classes */ public static Set<OWLClass> getClasses(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(CLASS)) .map(v -> dataFactory.getOWLClass(v.iri))); }