@Override protected Collection<OWLDataProperty> getSuperProperties(OWLDataProperty subProperty, Set<OWLOntology> ontologies) { return EntitySearcher.getSuperProperties(subProperty, ontologies) .stream() .filter(p -> !p.isAnonymous()) .map(p -> (OWLDataProperty) p) .collect(toList()); }
private void add(OWLDataPropertyExpression p) { if (!p.isAnonymous()) { referencedEntities.add(p.asOWLDataProperty()); } }
private void add(OWLDataPropertyExpression p) { if (!p.isAnonymous()) { sources.add(p.asOWLDataProperty()); } }
@Nonnull @Override public Optional<OWLProperty> visit(@Nonnull OWLDataSomeValuesFrom ce) { if (!ce.getProperty().isAnonymous()) { return Optional.of(ce.getProperty().asOWLDataProperty()); } else { return Optional.empty(); } }
protected void addAnnotations(OWLNamedIndividual ind, OWLOntology ont) { ont.dataPropertyAssertionAxioms(ind).filter(ax -> !ax.getProperty().isAnonymous()) .forEach(ax -> addAnnotation( ind, ont, ax)); }
@Nonnull @Override public Optional<OWLProperty> visit(@Nonnull OWLDataMinCardinality ce) { if (!ce.getProperty().isAnonymous() && ce.getCardinality() == 1) { return Optional.of(ce.getProperty().asOWLDataProperty()); } else { return Optional.empty(); } }
public void visit(OWLFunctionalDataPropertyAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } }
@Override public void visit(OWLFunctionalDataPropertyAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } }
@Override public void visit(OWLFunctionalDataPropertyAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } }
@Override public void visit(OWLDataPropertyRangeAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } indexAxiomsByRHSEntities(axiom.getRange(), axiom); }
@Override public void visit(OWLDataPropertyRangeAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } indexAxiomsByRHSEntities(axiom.getRange(), axiom); }
@Override public void visit(OWLDataPropertyRangeAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } indexAxiomsByRHSEntities(axiom.getRange(), axiom); }
@Override public void visit(OWLDataPropertyRangeAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } indexAxiomsByRHSEntities(axiom.getRange(), axiom); }
@Override public void visit(OWLDataPropertyRangeAxiom axiom) { if (!axiom.getProperty().isAnonymous()) { getAxiomsForLHS(axiom.getProperty().asOWLDataProperty()).add(axiom); } indexAxiomsByRHSEntities(axiom.getRange(), axiom); }
protected OWLObjectEditor<OWLDataProperty> getObjectEditor() { OWLDataPropertyEditor editor = new OWLDataPropertyEditor(getOWLEditorKit()); OWLDataPropertyExpression p = getAxiom().getSuperProperty(); if (!p.isAnonymous()){ editor.setEditedObject(p.asOWLDataProperty()); } return editor; }
protected OWLObjectEditor<OWLDataProperty> getObjectEditor() { OWLDataPropertyEditor editor = new OWLDataPropertyEditor(getOWLEditorKit()); OWLDataPropertyExpression p = getAxiom().getSuperProperty(); if (!p.isAnonymous()){ editor.setEditedObject(p.asOWLDataProperty()); } return editor; }
protected OWLObjectEditor<OWLDataProperty> getObjectEditor() { OWLDataPropertyEditor editor = new OWLDataPropertyEditor(getOWLEditorKit()); OWLDataPropertyExpression p = getAxiom().getSuperProperty(); if (!p.isAnonymous()){ editor.setEditedObject(p.asOWLDataProperty()); } return editor; }
private void handleRestriction(OWLQuantifiedRestriction<OWLDataRange, OWLDataPropertyExpression, OWLDataRange> r) { if (!r.getProperty().isAnonymous() && r.getFiller().isDatatype()){ p = r.getProperty().asOWLDataProperty(); f = r.getFiller().asOWLDatatype(); isAcceptable = true; } }
public void visit(SWRLDataPropertyAtom atom) { if( atom.getPredicate().isAnonymous() ) { swrlAtom = null; return; } atom.getFirstArgument().accept( this ); AtomIObject subj = swrlIObject; atom.getSecondArgument().accept( this ); AtomDObject obj = swrlDObject; atom.getPredicate().accept( this ); swrlAtom = new DatavaluedPropertyAtom( term, subj, obj ); }
@Nonnull @Override public Set<PropertyValue> visit(OWLDataExactCardinality ce) { if (ce.getCardinality() == 1 && !ce.getProperty().isAnonymous() && ce.getFiller().isDatatype()) { return toSet(PropertyDatatypeValue.get(rm.getDataPropertyData(ce.getProperty().asOWLDataProperty()), rm.getDatatypeData(ce.getFiller().asOWLDatatype()), state)); } else { return null; } }