/** * Gets the oWL data property. * * @param iri the iri * @return the oWL data property */ protected OWLDataProperty getOWLDataProperty(IRI iri) { return df.getOWLDataProperty(iri); }
/** * Translate data property expression. * * @param iri the iri * @return the oWL data property expression */ public OWLDataPropertyExpression translateDataPropertyExpression(IRI iri) { return df.getOWLDataProperty(iri); }
@Override @Nullable public OWLDataProperty getOWLDataProperty(String name) { if (dataPropertyNames.contains(name)) { return df.getOWLDataProperty(getIRI(name)); } return null; }
@Override @Nullable public OWLDataProperty getOWLDataProperty(String name) { if (dataPropertyNames.contains(name)) { return df.getOWLDataProperty(getIRI(name)); } return null; }
/** * @param iri property * @return property * @since 2.5.1 */ default OWLDataProperty toDataProperty(final IRI iri) { return getFactory().getOWLDataProperty(iri); }
final public OWLDataProperty DataPropertyIRI() throws ParseException { IRI iri; iri = IRI(); return dataFactory.getOWLDataProperty(iri); }
/** * @param dataFactory data factory to use * @return set of SKOS data properties */ public static Set<OWLDataProperty> getDataProperties(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(DATA_PROPERTY)) .map(v -> dataFactory.getOWLDataProperty( v.iri))); }
@Nonnull @Override public Optional<OWLAxiom> visit(@Nonnull OWLDataProperty property) { return strategy.getDeprecatedDataPropertyParentIri() .map(parent -> dataFactory.getOWLSubDataPropertyOfAxiom(property, dataFactory.getOWLDataProperty(parent))); }
/** * @param dataFactory data factory to use * @return set of SKOS data properties */ public static Set<OWLDataProperty> getDataProperties(OWLDataFactory dataFactory) { return asSet(stream().filter(v -> v.entityType.equals(DATA_PROPERTY)) .map(v -> dataFactory.getOWLDataProperty( v.iri))); }
@Override public OWLDataProperty buildObject() { if (pm != null && string != null) { return df.getOWLDataProperty(getString(), getPM()); } return df.getOWLDataProperty(getIRI()); } }
private static Map<OWLEntity, IRI> remap(Map<IRI, IRI> iriReplacementMap, OWLDataFactory df) { Map<OWLEntity, IRI> map = new HashMap<>(); iriReplacementMap.forEach((k, v) -> { map.put(df.getOWLClass(k), v); map.put(df.getOWLObjectProperty(k), v); map.put(df.getOWLDataProperty(k), v); map.put(df.getOWLNamedIndividual(k), v); map.put(df.getOWLDatatype(k), v); map.put(df.getOWLAnnotationProperty(k), v); }); return map; }
private static Map<OWLEntity, IRI> remap(Map<IRI, IRI> iriReplacementMap, OWLDataFactory df) { Map<OWLEntity, IRI> map = new HashMap<>(); iriReplacementMap.forEach((k, v) -> { map.put(df.getOWLClass(k), v); map.put(df.getOWLObjectProperty(k), v); map.put(df.getOWLDataProperty(k), v); map.put(df.getOWLNamedIndividual(k), v); map.put(df.getOWLDatatype(k), v); map.put(df.getOWLAnnotationProperty(k), v); }); return map; }
protected OWLDataProperty convert(DatatypeProperty prop) { if (prop instanceof OWLAPIDatatypeProperty) { return ((OWLAPIDatatypeProperty) prop).dataProp; } else { return factory.getOWLDataProperty(IRI.create(prop.getURI())); } }
@Override public OWLDataProperty read(OWLInputStream in) throws IOException { IRI iri = (IRI) in.read(); return in.getOWLDataFactory().getOWLDataProperty(iri); }
default void addValue(final IRI property, final String literal) { final OWLDataProperty owlProperty = getFactory().getOWLDataProperty(property); addDataPropertyAxiom(owlProperty, getMe(), literal); }
protected Node<OWLDataProperty> dataPropertyHierarchyNodeToNode(HierarchyNode<AtomicRole> hierarchyNode) { Set<OWLDataProperty> result=new HashSet<>(); OWLDataFactory factory=getDataFactory(); for (AtomicRole atomicRole : hierarchyNode.getEquivalentElements()) result.add(factory.getOWLDataProperty(IRI.create(atomicRole.getIRI()))); return new OWLDataPropertyNode(result); } protected NodeSet<OWLDataProperty> dataPropertyHierarchyNodesToNodeSet(Collection<HierarchyNode<AtomicRole>> hierarchyNodes) {
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
private OWLDataProperty getOWLDataProperty(String name) { OWLDataProperty prop = checker.getOWLDataProperty(name); if (prop == null && dataPropertyNames.contains(name)) { prop = df.getOWLDataProperty(getIRI(name)); } if (prop == null) { throw new ExceptionBuilder().withData().build(); } return prop; }
@Override public void handleTriple(IRI s, IRI p, IRI o) { if (!isAnon(s)) { OWLDataProperty owlDataProperty = df.getOWLDataProperty(s); add(df.getOWLDeclarationAxiom(owlDataProperty, anns())); } addDp(s, true); } }
/** * @param factory factory */ public BuiltInPropertyManager(OWLDataFactory factory) { m_factory=factory; m_topObjectProperty=m_factory.getOWLObjectProperty(IRI.create(AtomicRole.TOP_OBJECT_ROLE.getIRI())); m_bottomObjectProperty=m_factory.getOWLObjectProperty(IRI.create(AtomicRole.BOTTOM_OBJECT_ROLE.getIRI())); m_topDataProperty=m_factory.getOWLDataProperty(IRI.create(AtomicRole.TOP_DATA_ROLE.getIRI())); m_bottomDataProperty=m_factory.getOWLDataProperty(IRI.create(AtomicRole.BOTTOM_DATA_ROLE.getIRI())); } /**