@Override protected Stream<OWLClass> getEntities(OWLOntology ont) { return ont.classesInSignature(); } }
@Override protected Stream<OWLClass> getObjects(OWLOntology ont) { return ont.classesInSignature(); } }
@Override protected Stream<OWLClass> getEntities(OWLOntology ont) { return ont.classesInSignature(); } }
@Override protected Stream<OWLClass> getObjects(OWLOntology ont) { return ont.classesInSignature(); } }
@Override protected Stream<OWLClass> getEntities(OWLOntology ont) { return ont.classesInSignature(); } }
@Override public Double recomputeMetric() { AtomicInteger total = new AtomicInteger(); AtomicInteger count = new AtomicInteger(); Set<OWLClass> processedClasses = new HashSet<>(); getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add) .forEach(cls -> processClass(total, count, ont, cls))); return Double.valueOf((double) total.get() / count.get()); }
@Override public Double recomputeMetric() { AtomicInteger total = new AtomicInteger(); AtomicInteger count = new AtomicInteger(); Set<OWLClass> processedClasses = new HashSet<>(); getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add) .forEach(cls -> processClass(total, count, ont, cls))); return Double.valueOf((double) total.get() / count.get()); }
@Override public Double recomputeMetric() { AtomicInteger total = new AtomicInteger(); AtomicInteger count = new AtomicInteger(); Set<OWLClass> processedClasses = new HashSet<>(); getOntologies().forEach(ont -> ont.classesInSignature().filter(processedClasses::add) .forEach(cls -> processClass(total, count, ont, cls))); return Double.valueOf((double) total.get() / count.get()); }
/** * Instantiates a new amalgamate sub class axioms. * * @param dataFactory the data factory * @param ontologies the ontologies to use */ public AmalgamateSubClassAxioms(OWLDataFactory dataFactory, Collection<OWLOntology> ontologies) { super(dataFactory); checkNotNull(ontologies, "ontologies cannot be null"); ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls))); }
/** * Instantiates a new amalgamate sub class axioms. * * @param dataFactory the data factory * @param ontologies the ontologies to use */ public AmalgamateSubClassAxioms(OWLDataFactory dataFactory, Collection<OWLOntology> ontologies) { super(dataFactory); checkNotNull(ontologies, "ontologies cannot be null"); ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls))); }
/** * Instantiates a new amalgamate sub class axioms. * * @param dataFactory the data factory * @param ontologies the ontologies to use */ public AmalgamateSubClassAxioms(OWLDataFactory dataFactory, Collection<OWLOntology> ontologies) { super(dataFactory); checkNotNull(ontologies, "ontologies cannot be null"); ontologies.forEach(o -> o.classesInSignature().forEach(cls -> amalgamate(o, cls))); }
@Override public Integer recomputeMetric() { Set<OWLClass> processedClasses = new HashSet<>(); OptionalLong max = getOntologies() .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add) .mapToLong( cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class) .filter(d -> !d.isAnonymous()).count())) .max(); return Integer.valueOf((int) max.orElse(0L)); }
@Override public Integer recomputeMetric() { Set<OWLClass> processedClasses = new HashSet<>(); OptionalLong max = getOntologies() .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add) .mapToLong( cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class) .filter(d -> !d.isAnonymous()).count())) .max(); return Integer.valueOf((int) max.orElse(0L)); }
@Override public Integer recomputeMetric() { Set<OWLClass> processedClasses = new HashSet<>(); OptionalLong max = getOntologies() .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add) .mapToLong( cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class) .filter(d -> !d.isAnonymous()).count())) .max(); return Integer.valueOf((int) max.orElse(0L)); }
@Override public Integer recomputeMetric() { Set<OWLClass> processedClasses = new HashSet<>(); OptionalLong max = getOntologies() .flatMapToLong(o -> o.classesInSignature().filter(processedClasses::add) .mapToLong( cls -> equivalent(o.equivalentClassesAxioms(cls), OWLClassExpression.class) .filter(d -> !d.isAnonymous()).count())) .max(); return Integer.valueOf((int) max.orElse(0L)); }
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() { Set<OWLEntity> result = new HashSet<>(); add(result, ontology.classesInSignature()); add(result, ontology.objectPropertiesInSignature()); add(result, ontology.dataPropertiesInSignature()); add(result, ontology.individualsInSignature()); add(result, ontology.annotationPropertiesInSignature()); return result; }
protected Set<OWLEntity> getEntitiesThatRequireNamespaces() { Set<OWLEntity> result = new HashSet<>(); add(result, ontology.classesInSignature()); add(result, ontology.objectPropertiesInSignature()); add(result, ontology.dataPropertiesInSignature()); add(result, ontology.individualsInSignature()); add(result, ontology.annotationPropertiesInSignature()); return result; }
private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) { renderEntities(ontology.annotationPropertiesInSignature(), ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns); renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns); renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns); }
private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) { renderEntities(ontology.annotationPropertiesInSignature(), ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns); renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns); renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns); }
private void renderInOntologySignatureEntities(Collection<IRI> illegalPuns) { renderEntities(ontology.annotationPropertiesInSignature(), ANNOTATION_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.datatypesInSignature(), DATATYPES_BANNER_TEXT, illegalPuns); renderEntities(ontology.objectPropertiesInSignature(), OBJECT_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.dataPropertiesInSignature(), DATA_PROPERTIES_BANNER_TEXT, illegalPuns); renderEntities(ontology.classesInSignature(), CLASSES_BANNER_TEXT, illegalPuns); renderEntities(ontology.individualsInSignature(), INDIVIDUALS_BANNER_TEXT, illegalPuns); }