@Override public OWLAxiom createAxiom(OWLAnnotationProperty s, IRI o, Set<OWLAnnotation> anns) { return dataFactory.getOWLAnnotationPropertyDomainAxiom(s, o, anns); }
public static OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain( OWLAnnotationProperty property, String iri) { return DF.getOWLAnnotationPropertyDomainAxiom(property, IRI(iri)); }
public static OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain( OWLAnnotationProperty property, String iri) { return DF.getOWLAnnotationPropertyDomainAxiom(property, IRI(iri)); }
public static OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain( OWLAnnotationProperty property, String iri) { return DF.getOWLAnnotationPropertyDomainAxiom(property, IRI(iri)); }
@Override public Object read(OWLInputStream in) throws IOException { OWLAnnotationProperty p = (OWLAnnotationProperty) in.read(); IRI domain = (IRI) in.read(); return in.getOWLDataFactory().getOWLAnnotationPropertyDomainAxiom(p, domain); }
public OWLAnnotationPropertyDomainAxiom getAxiomWithoutAnnotations() { if(!isAnnotated()) { return this; } return getOWLDataFactory().getOWLAnnotationPropertyDomainAxiom(getProperty(), getDomain()); }
private void translateAnnotationPropertyDomain(IRI s, IRI p, IRI o) { OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s); add(df.getOWLAnnotationPropertyDomainAxiom(prop, o, anns())); // TODO: Handle anonymous domain - error? consume(s, p, o); }
private void translateAnnotationPropertyDomain(IRI s, IRI p, IRI o) { OWLAnnotationProperty prop = df.getOWLAnnotationProperty(s); add(df.getOWLAnnotationPropertyDomainAxiom(prop, o, anns())); // TODO: Handle anonymous domain - error? consume(s, p, o); }
@Override public OWLAnnotationPropertyDomainAxiom visit(OWLAnnotationPropertyDomainAxiom ax) { return df.getOWLAnnotationPropertyDomainAxiom(t(ax.getProperty()), t(ax.getDomain()), a(ax)); }
@Override public OWLAnnotationPropertyDomainAxiom visit(OWLAnnotationPropertyDomainAxiom axiom) { return df .getOWLAnnotationPropertyDomainAxiom(get(axiom.getProperty()), get(axiom.getDomain()), anns(axiom)); }
@Override public OWLAnnotationPropertyDomainAxiom visit(OWLAnnotationPropertyDomainAxiom axiom) { return df .getOWLAnnotationPropertyDomainAxiom(get(axiom.getProperty()), get(axiom.getDomain()), anns(axiom)); }
@Override public OWLAnnotationPropertyDomainAxiom visit(OWLAnnotationPropertyDomainAxiom ax) { return df.getOWLAnnotationPropertyDomainAxiom(t(ax.getProperty()), t(ax.getDomain()), a(ax)); }
@Override public OWLAnnotationPropertyDomainAxiom visit(OWLAnnotationPropertyDomainAxiom ax) { return df.getOWLAnnotationPropertyDomainAxiom(t(ax.getProperty()), t(ax.getDomain()), a(ax)); }
final public OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain() throws ParseException {IRI domain; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYDOMAIN); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); domain = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyDomainAxiom(prop, domain, axiomAnnos); }
final public OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain() throws ParseException {IRI domain; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYDOMAIN); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); domain = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyDomainAxiom(prop, domain, axiomAnnos); }
final public OWLAnnotationPropertyDomainAxiom AnnotationPropertyDomain() throws ParseException {IRI domain; OWLAnnotationProperty prop; Set<OWLAnnotation> axiomAnnos; jj_consume_token(ANNOTATIONPROPERTYDOMAIN); jj_consume_token(OPENPAR); axiomAnnos = AxiomAnnotationSet(); prop = AnnotationPropertyIRI(); domain = IRI(); jj_consume_token(CLOSEPAR); return df.getOWLAnnotationPropertyDomainAxiom(prop, domain, axiomAnnos); }
@Override public Object visit(OWLAnnotationPropertyDomainAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLAnnotationPropertyDomainAxiom(t(axiom.getProperty()), t(axiom .getDomain()), t(axiom.annotations()))); }
@Override public Object visit(OWLAnnotationPropertyDomainAxiom axiom) { return visitAxiom(axiom, () -> df.getOWLAnnotationPropertyDomainAxiom(t(axiom.getProperty()), t(axiom .getDomain()), t(axiom.annotations()))); }
private void initialiseAnnotationPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections); //@formatter:on }
private void initialiseAnnotationPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections); //@formatter:on }