CollectRDFVocabulary(RDF rdfFactory) { this.vb = OntologyBuilderImpl.builder(rdfFactory); }
public SemanticIndexRDFHandler(SIRepository repository, Connection connection, TypeFactory typeFactory, TermFactory termFactory, RDF rdfFactory) { this.repository = repository; this.typeFactory = typeFactory; this.termFactory = termFactory; this.builder = OntologyBuilderImpl.assertionSupplier(rdfFactory); this.connection = connection; this.rdfFactory = rdfFactory; }
@Override public void addAnnotationAssertion(AnnotationProperty ap, ObjectConstant o, Constant c) { checkSignature(ap); AnnotationAssertion assertion = createAnnotationAssertion(ap, o, c); if (assertion != null) annotationAssertions.add(assertion); }
@Override public void addObjectPropertyAssertion(ObjectPropertyExpression ope, ObjectConstant o1, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ope); ObjectPropertyAssertion assertion = createObjectPropertyAssertion(ope, o1, o); if (assertion != null) objectPropertyAssertions.add(assertion); }
@Override public void addDataPropertyAssertion(DataPropertyExpression dpe, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { checkSignature(dpe); DataPropertyAssertion assertion = createDataPropertyAssertion(dpe, o, v); if (assertion != null) dataPropertyAssertions.add(assertion); }
@Override public void addFunctionalObjectPropertyAxiom(ObjectPropertyExpression prop) { checkSignature(prop); functionalObjectPropertyAxioms.add(prop); }
@Override public void addClassAssertion(OClass ce, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ce); ClassAssertion assertion = createClassAssertion(ce, o); if (assertion != null) classAssertions.add(assertion); }
@Override public ClassAssertion createClassAssertion(String c, ObjectConstant o) throws InconsistentOntologyException { return OntologyBuilderImpl.createClassAssertion(new ClassImpl(c), o); }
@Override public DataPropertyAssertion createDataPropertyAssertion(String dp, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { return OntologyBuilderImpl.createDataPropertyAssertion(new DataPropertyExpressionImpl(dp), o, v); } };
@Override public ObjectPropertyAssertion createObjectPropertyAssertion(String op, ObjectConstant o1, ObjectConstant o2) throws InconsistentOntologyException { return OntologyBuilderImpl.createObjectPropertyAssertion(new ObjectPropertyExpressionImpl(op), o1, o2); }
public AnnotationAssertion translate(OWLAnnotationAssertionAxiom ax, OntologyVocabularyCategory<AnnotationProperty> annotationProperties) throws TranslationException, InconsistentOntologyException { IRIConstant c1 = getIndividual(ax.getSubject()); Constant c2 = getValue(ax.getValue()); AnnotationProperty ap = getPropertyExpression(ax.getProperty(), annotationProperties); return OntologyBuilderImpl.createAnnotationAssertion(ap, c1, c2); }
public static OntologyBuilder builder() { return new OntologyBuilderImpl(); }
@Override public void addFunctionalObjectPropertyAxiom(ObjectPropertyExpression prop) { checkSignature(prop); functionalObjectPropertyAxioms.add(prop); }
@Override public void addObjectPropertyAssertion(ObjectPropertyExpression ope, ObjectConstant o1, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ope); ObjectPropertyAssertion assertion = createObjectPropertyAssertion(ope, o1, o); if (assertion != null) objectPropertyAssertions.add(assertion); }
@Override public void addDataPropertyAssertion(DataPropertyExpression dpe, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { checkSignature(dpe); DataPropertyAssertion assertion = createDataPropertyAssertion(dpe, o, v); if (assertion != null) dataPropertyAssertions.add(assertion); }
@Override public void addClassAssertion(OClass ce, ObjectConstant o) throws InconsistentOntologyException { checkSignature(ce); ClassAssertion assertion = createClassAssertion(ce, o); if (assertion != null) classAssertions.add(assertion); }
@Override public ClassAssertion createClassAssertion(String c, ObjectConstant o) throws InconsistentOntologyException { return OntologyBuilderImpl.createClassAssertion(new ClassImpl(rdfFactory.createIRI(c)), o); }
@Override public DataPropertyAssertion createDataPropertyAssertion(String dp, ObjectConstant o, ValueConstant v) throws InconsistentOntologyException { return OntologyBuilderImpl.createDataPropertyAssertion(new DataPropertyExpressionImpl(rdfFactory.createIRI(dp)), o, v); } };
@Override public ObjectPropertyAssertion createObjectPropertyAssertion(String op, ObjectConstant o1, ObjectConstant o2) throws InconsistentOntologyException { return OntologyBuilderImpl.createObjectPropertyAssertion(new ObjectPropertyExpressionImpl(rdfFactory.createIRI(op)), o1, o2); }
public static OntologyBuilder builder(RDF rdfFactory) { return new OntologyBuilderImpl(rdfFactory); }