Refine search
/** * Gets a list of objects contained in this row. These objects * could be placed on the clip board during a copy operation, * or navigated to etc. */ public List<OWLObject> getManipulatableObjects() { List<OWLObject> objects = new ArrayList<>(); objects.add(getAxiom().getProperty()); objects.add(getAxiom().getObject()); return objects; }
/** * @param i individual * @param ontology ontology to search * @return property values */ public static Multimap<OWLDataPropertyExpression, OWLLiteral> getDataPropertyValues( OWLIndividual i, OWLOntology ontology) { Multimap<OWLDataPropertyExpression, OWLLiteral> map = LinkedListMultimap.create(); ontology.dataPropertyAssertionAxioms(i) .forEach(ax -> map.put(ax.getProperty(), ax.getObject())); return map; }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { addSingleTripleAxiom(axiom, axiom.getSubject(), axiom.getProperty(), axiom.getObject()); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(), process(axiom .getProperty(), axiom.getObject())); }
@Override public OWLDataPropertyAssertionAxiom visit(OWLDataPropertyAssertionAxiom axiom) { return df.getOWLDataPropertyAssertionAxiom(axiom.getProperty(), axiom.getSubject(), process(axiom .getProperty(), axiom.getObject())); }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { String subject = prefixManager.getShortForm(axiom.getSubject().toString()); String predicate = prefixManager.getShortForm(axiom.getProperty().toString()); String object = ToStringRenderer.getInstance().getRendering(axiom.getObject()); dataPropertyAssertionBuffer.append(String.format("%s %s %s .\n", subject, predicate, object)); }
@Override public void visit(OWLDataPropertyAssertionAxiom object) { Constant targetValue=(Constant)object.getObject().accept(m_dataRangeConverter); m_positiveFacts.add(getRoleAtom(object.getProperty(),getIndividual(object.getSubject()),targetValue)); } @Override
public Boolean visit(OWLDataPropertyAssertionAxiom axiom) { OWLIndividual sub=axiom.getSubject(); if (sub.isAnonymous()) { anonymousIndividualAxioms.add(axiom); return true; // will be checked afterwards by rolling-up } return reasoner.hasDataPropertyRelationship(sub.asOWLNamedIndividual(),axiom.getProperty().asOWLDataProperty(),axiom.getObject()); } public Boolean visit(OWLNegativeDataPropertyAssertionAxiom axiom) {
@Override public void write(OWLOutputStream out, Object o) throws IOException { OWLDataPropertyAssertionAxiom axiom = (OWLDataPropertyAssertionAxiom) o; out.write(axiom.getSubject()); out.write(axiom.getProperty()); out.write(axiom.getObject()); }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { v(axiom.getSubject()); v(axiom.getProperty()); v(axiom.getObject()); }
@Nonnull @Override public Set<PropertyValue> visit(OWLDataPropertyAssertionAxiom axiom) { if (axiom.getSubject().equals(subject)) { return toSet(PropertyLiteralValue.get(rm.getDataPropertyData(axiom.getProperty().asOWLDataProperty()), OWLLiteralData.get(axiom.getObject()), State.ASSERTED)); } else { return null; } }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { sb.append("DataPropertyAssertion("); writeAnnotations(axiom); axiom.getProperty().accept(this); insertSpace(); axiom.getSubject().accept(this); insertSpace(); axiom.getObject().accept(this); sb.append(')'); }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { sb.append("DataPropertyAssertion("); writeAnnotations(axiom); axiom.getProperty().accept(this); insertSpace(); axiom.getSubject().accept(this); insertSpace(); axiom.getObject().accept(this); sb.append(')'); }
@Override public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) { OWLClassExpression sub = oneOf(axiom.getSubject()); OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject()); OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup); return ax.accept(this); }
@Override public void visit(OWLDataPropertyAssertionAxiom axiom) { process(axiom); axiom.getSubject().accept(this); axiom.getProperty().accept(this); axiom.getObject().accept(this); }
@Override public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) { OWLClassExpression sub = oneOf(axiom.getSubject()); OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject()); OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup); return ax.accept(this); }
public void visit(OWLDataPropertyAssertionAxiom axiom) { handleObject(axiom); axiom.getSubject().accept(this); axiom.getProperty().accept(this); axiom.getObject().accept(this); }
private OWLAnnotationAssertionAxiom convertToAnnotation(OWLNamedIndividual ind, OWLDataPropertyAssertionAxiom ax) { OWLDataProperty hasIRI = ax.getProperty().asOWLDataProperty(); OWLAnnotation anno = df .getOWLAnnotation(df.getOWLAnnotationProperty(hasIRI), ax.getObject()); return df.getOWLAnnotationAssertionAxiom(ind.getIRI(), anno); } }
@Override public OWLClassExpression visit(OWLDataPropertyAssertionAxiom axiom) { OWLClassExpression sub = oneOf(axiom.getSubject()); OWLClassExpression sup = factory.getOWLDataHasValue(axiom.getProperty(), axiom.getObject()); OWLSubClassOfAxiom ax = factory.getOWLSubClassOfAxiom(sub, sup); return ax.accept(this); }
public DataPropertyAssertion translate(OWLDataPropertyAssertionAxiom ax, OntologyVocabularyCategory<DataPropertyExpression> dataProperties) throws TranslationException, InconsistentOntologyException { IRIConstant c1 = getIndividual(ax.getSubject()); ValueConstant c2 = getValueOfLiteral(ax.getObject()); DataPropertyExpression dpe = getPropertyExpression(ax.getProperty(), dataProperties); return OntologyBuilderImpl.createDataPropertyAssertion(dpe, c1, c2); }