default Set<ATermAppl> getAnnotationProperties() { final Set<ATermAppl> set = new HashSet<>(); for (final Role role : getRBox().getRoles().values()) { final ATermAppl p = role.getName(); if (ATermUtils.isPrimitive(p) && role.isAnnotationRole()) set.add(p); } return set; }
default Set<ATermAppl> getAnnotationProperties() { final Set<ATermAppl> set = new HashSet<>(); for (final Role role : getRBox().getRoles().values()) { final ATermAppl p = role.getName(); if (ATermUtils.isPrimitive(p) && role.isAnnotationRole()) set.add(p); } return set; }
/** * @return the set of all properties. */ public default Set<ATermAppl> getProperties() { final Set<ATermAppl> set = new HashSet<>(); for (final Role role : getRBox().getRoles().values()) { final ATermAppl p = role.getName(); if (ATermUtils.isPrimitive(p) && (role.isObjectRole() || role.isDatatypeRole() || role.isAnnotationRole())) set.add(p); } return set; }
/** * @return the set of all properties. */ public default Set<ATermAppl> getProperties() { final Set<ATermAppl> set = new HashSet<>(); for (final Role role : getRBox().getRoles().values()) { final ATermAppl p = role.getName(); if (ATermUtils.isPrimitive(p) && (role.isObjectRole() || role.isDatatypeRole() || role.isAnnotationRole())) set.add(p); } return set; }
return getDataPropertyValues(r, x); else if (role.isAnnotationRole())
return getDataPropertyValues(r, x); else if (role.isAnnotationRole())
/** * List all subjects with a given property and property value. * * @param r * @param x If property is an object property an ATermAppl object that is the URI of the _individual, if the property is a _data property an ATerm object * that contains the literal value (See {#link #getIndividualsWithDataProperty(ATermAppl, ATermAppl)} for details) * @return List of ATermAppl objects. */ public default List<ATermAppl> getIndividualsWithProperty(final ATermAppl r, final ATermAppl x) { final Role role = getRBox().getRole(r); if (role == null) { Base.handleUndefinedEntity(r + _isNotAnKnowProperty); return Collections.emptyList(); } if (role.isObjectRole()) return getIndividualsWithObjectProperty(r, x); else if (role.isDatatypeRole()) return getIndividualsWithDataProperty(r, x); else if (role.isAnnotationRole()) return Arrays.asList(getIndividualsWithAnnotation(r, x).toArray(new ATermAppl[0])); else throw new IllegalArgumentException(); }
/** * List all subjects with a given property and property value. * * @param r * @param x If property is an object property an ATermAppl object that is the URI of the _individual, if the property is a _data property an ATerm object * that contains the literal value (See {#link #getIndividualsWithDataProperty(ATermAppl, ATermAppl)} for details) * @return List of ATermAppl objects. */ public default List<ATermAppl> getIndividualsWithProperty(final ATermAppl r, final ATermAppl x) { final Role role = getRBox().getRole(r); if (role == null) { Base.handleUndefinedEntity(r + _isNotAnKnowProperty); return Collections.emptyList(); } if (role.isObjectRole()) return getIndividualsWithObjectProperty(r, x); else if (role.isDatatypeRole()) return getIndividualsWithDataProperty(r, x); else if (role.isAnnotationRole()) return Arrays.asList(getIndividualsWithAnnotation(r, x).toArray(new ATermAppl[0])); else throw new IllegalArgumentException(); }
if (role1.isAnnotationRole() || role2.isAnnotationRole()) return false;
if (role1.isAnnotationRole() || role2.isAnnotationRole()) return false;
if (role.isAnnotationRole()) return false;
if (role.isAnnotationRole()) return false;
if (roleSub.isAnnotationRole()) return false; //temporary statement until we incorporate annotation properties to the taxonomy ([t:412]) else
if (roleSub.isAnnotationRole()) return false; //temporary statement until we incorporate annotation properties to the taxonomy ([t:412]) else