/** * Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if * it starts with <http://www.w3.org/1999/02/22-rdf-syntax-ns#> or * <http://www.w3.org/2000/01/rdf-schema#> or <http://www.w3.org/2001/XMLSchema#> or * <http://www.w3.org/2002/07/owl#> * * @return {@code true} if the IRI is in the reserved vocabulary, otherwise {@code false}. */ public boolean isReservedVocabulary() { return Namespaces.OWL.inNamespace(namespace) || Namespaces.RDF.inNamespace(namespace) || Namespaces.RDFS.inNamespace(namespace) || Namespaces.XSD.inNamespace(namespace); }
/** * Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if * it starts with <http://www.w3.org/1999/02/22-rdf-syntax-ns#> or * <http://www.w3.org/2000/01/rdf-schema#> or <http://www.w3.org/2001/XMLSchema#> or * <http://www.w3.org/2002/07/owl#> * * @return {@code true} if the IRI is in the reserved vocabulary, otherwise {@code false}. */ public boolean isReservedVocabulary() { return Namespaces.OWL.inNamespace(namespace) || Namespaces.RDF.inNamespace(namespace) || Namespaces.RDFS.inNamespace(namespace) || Namespaces.XSD.inNamespace(namespace); }
/** * Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if * it starts with <http://www.w3.org/1999/02/22-rdf-syntax-ns#> or * <http://www.w3.org/2000/01/rdf-schema#> or <http://www.w3.org/2001/XMLSchema#> or * <http://www.w3.org/2002/07/owl#> * * @return {@code true} if the IRI is in the reserved vocabulary, otherwise {@code false}. */ public boolean isReservedVocabulary() { return Namespaces.OWL.inNamespace(namespace) || Namespaces.RDF.inNamespace(namespace) || Namespaces.RDFS.inNamespace(namespace) || Namespaces.XSD.inNamespace(namespace); }
/** * Determines if this IRI is equal to the IRI that is named {@code rdf:PlainLiteral}. * * @return {@code true} if this IRI is equal to * <http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, otherwise * {@code false} */ public boolean isPlainLiteral() { return "PlainLiteral".equals(remainder) && Namespaces.RDF.inNamespace(namespace); }
/** * Determines if this IRI is equal to the IRI that is named {@code rdf:PlainLiteral}. * * @return {@code true} if this IRI is equal to * <http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, otherwise * {@code false} */ public boolean isPlainLiteral() { return "PlainLiteral".equals(remainder) && Namespaces.RDF.inNamespace(namespace); }
/** * Determines if this IRI is equal to the IRI that is named * <code>rdf:PlainLiteral</code> * * @return <code>true</code> if this IRI is equal to * <http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, * otherwise <code>false</code> */ public boolean isPlainLiteral() { return remainder != null && remainder.equals("PlainLiteral") && Namespaces.RDF.inNamespace(prefix); }
/** * Determines if this IRI is equal to the IRI that <code>owl:Thing</code> is * named with * * @return <code>true</code> if this IRI is equal to * <http://www.w3.org/2002/07/owl#Thing> and otherwise * <code>false</code> */ public boolean isThing() { return remainder != null && remainder.equals("Thing") && Namespaces.OWL.inNamespace(prefix); }
/** * Determines if this IRI is equal to the IRI that is named {@code rdf:PlainLiteral}. * * @return {@code true} if this IRI is equal to * <http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral>, otherwise * {@code false} */ public boolean isPlainLiteral() { return "PlainLiteral".equals(remainder) && Namespaces.RDF.inNamespace(namespace); }
protected void setOWL2Prefix(String k, String v) { if (!Namespaces.OWL11.inNamespace(k) && !Namespaces.OWL11XML.inNamespace(k)) { setPrefix(v, k); } }
protected void setOWL2Prefix(String k, String v) { if (!Namespaces.OWL11.inNamespace(k) && !Namespaces.OWL11XML.inNamespace(k)) { setPrefix(v, k); } }
/** * Checks if is general predicate. * * @param predicate the predicate * @return true, if is general predicate */ protected static boolean isGeneralPredicate(IRI predicate) { return !predicate.isReservedVocabulary() || BUILT_IN_AP_IRIS.contains(predicate) || SWRL.inNamespace(predicate) || SWRLB.inNamespace(predicate); }
protected void setOWL2Prefix(String k, String v) { if (!Namespaces.OWL11.inNamespace(k) && !Namespaces.OWL11XML.inNamespace(k)) { setPrefix(v, k); } }
protected void setOWL2Prefix(String k, String v) { if (!Namespaces.OWL11.inNamespace(k) && !Namespaces.OWL11XML.inNamespace(k)) { setPrefix(v, k); } }
/** * Checks if is general predicate. * * @param predicate the predicate * @return true, if is general predicate */ protected static boolean isGeneralPredicate(IRI predicate) { return !predicate.isReservedVocabulary() || BUILT_IN_AP_IRIS.contains(predicate) || SWRL.inNamespace(predicate) || SWRLB.inNamespace(predicate); }
/** * Checks if is general predicate. * * @param predicate the predicate * @return true, if is general predicate */ protected static boolean isGeneralPredicate(IRI predicate) { return !predicate.isReservedVocabulary() || BUILT_IN_AP_IRIS.contains(predicate) || SWRL.inNamespace(predicate) || SWRLB.inNamespace(predicate); }
/** * Checks if is general predicate. * * @param predicate the predicate * @return true, if is general predicate */ protected static boolean isGeneralPredicate(IRI predicate) { return !predicate.isReservedVocabulary() || BUILT_IN_AP_IRIS.contains(predicate) || SWRL.inNamespace(predicate) || SWRLB.inNamespace(predicate); }
protected boolean isGeneralPredicate(IRI predicate) { return !predicate.isReservedVocabulary() || OWLRDFVocabulary.BUILT_IN_ANNOTATION_PROPERTY_IRIS.contains(predicate) || Namespaces.SWRL.inNamespace(predicate) || Namespaces.SWRLB.inNamespace(predicate); }
protected void unknownDatatype(OWLDatatype node) { if (!Namespaces.XSD.inNamespace(node.getIRI()) && !node.isBuiltIn() && !node.isTopDatatype() && node.getIRI().isReservedVocabulary()) { violations.add(new UseOfUnknownDatatype(getCurrentOntology(), getCurrentAxiom(), node)); } }
protected void unknownDatatype(OWLDatatype node) { if (!Namespaces.XSD.inNamespace(node.getIRI()) && !node.isBuiltIn() && !node.isTopDatatype() && node.getIRI().isReservedVocabulary()) { violations.add(new UseOfUnknownDatatype(getCurrentOntology(), getCurrentAxiom(), node)); } }
protected void unknownDatatype(OWLDatatype node) { if (!Namespaces.XSD.inNamespace(node.getIRI()) && !node.isBuiltIn() && !node.isTopDatatype() && node.getIRI().isReservedVocabulary()) { violations.add(new UseOfUnknownDatatype(getCurrentOntology(), getCurrentAxiom(), node)); } }