/** * @return true if the datatype of this literal is plain literal */ public boolean isPlainLiteral() { return OWL2Datatype.RDF_PLAIN_LITERAL.getIRI().equals(datatype); }
/** * @return true if the datatype of this literal is plain literal */ public boolean isPlainLiteral() { return OWL2Datatype.RDF_PLAIN_LITERAL.getIRI().equals(datatype); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLDatatype)) { return false; } OWLDatatype other = (OWLDatatype) obj; return owl2Datatype.getIRI().equals(other.getIRI()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLDatatype)) { return false; } OWLDatatype other = (OWLDatatype) obj; return owl2Datatype.getIRI().equals(other.getIRI()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLDatatype)) { return false; } OWLDatatype other = (OWLDatatype) obj; return owl2Datatype.getIRI().equals(other.getIRI()); }
/** * @param arg datatype * @return builder */ public BuilderLiteral withDatatype(OWL2Datatype arg) { return withDatatype(df.getOWLDatatype(arg.getIRI())); }
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLDatatype)) { return false; } OWLDatatype other = (OWLDatatype) obj; return owl2Datatype.getIRI().equals(other.getIRI()); }
public Set<OWLDatatype> getBuiltinDatatypes(){ Set<OWLDatatype> datatypes = new HashSet<>(); final OWLDataFactory df = mngr.getOWLDataFactory(); datatypes.add(df.getTopDatatype()); for (OWL2Datatype dt : OWL2Datatype.values()) { datatypes.add(df.getOWLDatatype(dt.getIRI())); } return datatypes; }
/** * @param ignores ignores */ public void setIgnoresAnnotations(boolean ignores) { Set<OWLlinkLiteral> literals = CollectionFactory.createSet(); literals.add(new OWLlinkLiteralImpl(new Boolean(ignores).toString())); replaceConfiguration(new PropertyImpl(IGNORES_ANNOTATIONS, new OWLlinkDatatypeImpl(OWL2Datatype.XSD_BOOLEAN.getIRI()), literals)); }
@Override public OWLLiteral getOWLLiteral(String lexicalValue, @Nonnull OWL2Datatype datatype) { checkNotNull(lexicalValue, "lexicalValue cannot be null"); checkNotNull(datatype, "datatype cannot be null"); return getOWLLiteral(lexicalValue, getOWLDatatype(datatype.getIRI())); }
public void initialise() { for(OWLRDFVocabulary vocabulary : OWLRDFVocabulary.values()) { addOWLRDFVocabulary(vocabulary); } for(OWL2Datatype dt : OWL2Datatype.values()) { wellKnownRenderings.put(dt.getIRI(), dt.getPrefixedName()); } for(DublinCoreVocabulary dublinCoreVocabulary : DublinCoreVocabulary.values()) { wellKnownRenderings.put(dublinCoreVocabulary.getIRI(), dublinCoreVocabulary.getPrefixedName()); } }
private void loadOwl2Datatypes() { for(OWL2Datatype d : OWL2Datatype.values()) { shortFormCache.put(entityProvider.getOWLDatatype(d.getIRI()), d.getPrefixedName()); } }
/** * @param datatypeIRI datatypeIRI */ public void writeDatatypeAttribute(IRI datatypeIRI) { checkNotNull(datatypeIRI, "datatypeIRI cannot be null"); if (OWL2Datatype.RDF_XML_LITERAL.getIRI().equals(datatypeIRI)) { writeParseTypeLiteralAttribute(); } else { writer.writeAttribute(RDF_DATATYPE, datatypeIRI.toString()); } }
/** * @param datatypeIRI datatypeIRI */ public void writeDatatypeAttribute(IRI datatypeIRI) { checkNotNull(datatypeIRI, "datatypeIRI cannot be null"); if (OWL2Datatype.RDF_XML_LITERAL.getIRI().equals(datatypeIRI)) { writeParseTypeLiteralAttribute(); } else { writer.writeAttribute(RDF_DATATYPE, datatypeIRI.toString()); } }
/** * @param datatypeIRI datatypeIRI */ public void writeDatatypeAttribute(IRI datatypeIRI) { checkNotNull(datatypeIRI, "datatypeIRI cannot be null"); if (OWL2Datatype.RDF_XML_LITERAL.getIRI().equals(datatypeIRI)) { writeParseTypeLiteralAttribute(); } else { writer.writeAttribute(RDF_DATATYPE, datatypeIRI.toString()); } }
protected boolean isNonNegativeIntegerStrict(IRI mainNode, OWLRDFVocabulary predicate) { OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false); if(literal == null) { return false; } OWLDatatype datatype = literal.getDatatype(); OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER; return datatype.getIRI().equals(nni.getIRI()) && nni.isInLexicalSpace(literal.getLiteral()); }
protected boolean isNonNegativeIntegerStrict(IRI mainNode, OWLRDFVocabulary predicate) { OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false); if (literal == null) { return false; } OWLDatatype datatype = literal.getDatatype(); OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER; return datatype.getIRI().equals(nni.getIRI()) && nni .isInLexicalSpace(literal.getLiteral()); }
protected boolean isNonNegativeIntegerStrict(IRI mainNode, OWLRDFVocabulary predicate) { OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false); if (literal == null) { return false; } OWLDatatype datatype = literal.getDatatype(); OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER; return datatype.getIRI().equals(nni.getIRI()) && nni .isInLexicalSpace(literal.getLiteral()); }
protected boolean isNonNegativeIntegerStrict(IRI mainNode, OWLRDFVocabulary predicate) { OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false); if (literal == null) { return false; } OWLDatatype datatype = literal.getDatatype(); OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER; return datatype.getIRI().equals(nni.getIRI()) && nni.isInLexicalSpace(literal.getLiteral()); }
protected void initDefaults() { this.configurations = CollectionFactory.createSet(); setAppliedSemantics("direct", "direct"); setAbbreviatesIRIs(true); setIgnoresAnnotations(true); setSelectedProfile("OWL 2 DL", "OWL 2 DL"); setIgnoresDeclarations(true); setUniqueNameAssumption(false); setSupportedDatatypes(OWL2Datatype.XSD_STRING.getIRI()); setReasonerInfo(1, 1, 0); }