OWL2Datatype(XSDVocabulary xsd, Category category, boolean finite, String regEx) { this.iri = xsd.getIRI(); this.shortName = xsd.getShortName(); this.category = category; this.finite = finite; this.pattern = Pattern.compile(regEx, Pattern.DOTALL); }
private DatatypeFactory() { values.forEach(d -> knownDatatypes.put(d.getDatatypeIRI(), d)); knownDatatypes.put(XSDVocabulary.DATE.getIRI(), DATETIME); }
OWL2Datatype(@Nonnull XSDVocabulary xsd, @Nonnull Category category, boolean finite, @Nonnull String regEx) { iri = xsd.getIRI(); shortForm = xsd.getShortForm(); prefixedName = xsd.getPrefixedName(); this.category = category; this.finite = finite; regExpression = regEx; }
OWL2Datatype(XSDVocabulary xsd, Category category, boolean finite, String regEx) { iri = xsd.getIRI(); shortForm = xsd.getShortForm(); prefixedName = xsd.getPrefixedName(); this.category = category; this.finite = finite; regExpression = regEx; pattern = Pattern.compile(regEx, Pattern.DOTALL); }
OWL2Datatype(XSDVocabulary xsd, Category category, boolean finite, String regEx) { iri = xsd.getIRI(); shortForm = xsd.getShortForm(); prefixedName = xsd.getPrefixedName(); this.category = category; this.finite = finite; regExpression = regEx; pattern = Pattern.compile(regEx, Pattern.DOTALL); }
OWL2Datatype(XSDVocabulary xsd, Category category, boolean finite, String regEx) { iri = xsd.getIRI(); shortForm = xsd.getShortForm(); prefixedName = xsd.getPrefixedName(); this.category = category; this.finite = finite; regExpression = regEx; pattern = Pattern.compile(regEx, Pattern.DOTALL); }
public DefaultEntityChecker() { dataTypeNameMap = new HashMap<String, OWLDatatype>(); for (XSDVocabulary v : XSDVocabulary.values()) { dataTypeNameMap.put(v.getURI().getFragment(), dataFactory.getOWLDatatype(v.getIRI())); dataTypeNameMap.put("xsd:" + v.getURI().getFragment(), dataFactory.getOWLDatatype(v.getIRI())); } }
public XSDDateTime(@NonNull String content) { super(content, XSDVocabulary.DATE_TIME.getIRI()); this.datetime = XSDTimeUtil.xsdDateTimeString2UtilDate(content); }
@NonNull @Override public OWLDatatype getURIDatatype() { IRI iri = XSDVocabulary.ANY_URI.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getDateDatatype() { IRI iri = XSDVocabulary.DATE.getIRI(); return new OWLDatatypeImpl(iri); }
OWL2Datatype(XSDVocabulary xsd, Category category, boolean finite, String regEx) { iri = xsd.getIRI(); shortName = xsd.getShortName(); this.category = category; this.finite = finite; pattern = RegExp.compile(regEx, REG_EXP_FLAGS); }
@Override public boolean isMatch(OWLDatatype dt) { return dt.getIRI().equals(XSDVocabulary.LONG.getIRI()); } }
@NonNull @Override public OWLDatatype getBooleanDatatype() { IRI iri = XSDVocabulary.BOOLEAN.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getShortDatatype() { IRI iri = XSDVocabulary.SHORT.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getFloatDatatype() { IRI iri = XSDVocabulary.FLOAT.getIRI(); return new OWLDatatypeImpl(iri); }
@NonNull @Override public OWLDatatype getLongDatatype() { IRI iri = XSDVocabulary.LONG.getIRI(); return new OWLDatatypeImpl(iri); }
public DefaultEntityChecker() { for (XSDVocabulary v : XSDVocabulary.values()) { IRI iri = v.getIRI(); dataTypeNameMap.put(iri.getFragment(), dataFactory.getOWLDatatype(iri)); dataTypeNameMap.put("xsd:" + iri.getFragment(), dataFactory.getOWLDatatype(iri)); } }
private OWLLiteral toTypedConstant(int i) { return manager.getOWLDataFactory().getOWLLiteral(Integer.toString(i), manager .getOWLDataFactory().getOWLDatatype(XSDVocabulary.NON_NEGATIVE_INTEGER.getIRI())); }
protected OWLLiteral getBooleanConstant(Boolean b) { if (b) { return getDataFactory().getOWLTypedLiteral("true", getDataFactory().getOWLDatatype(XSDVocabulary.BOOLEAN.getIRI())); } else { return getDataFactory().getOWLTypedLiteral("false", getDataFactory().getOWLDatatype(XSDVocabulary.BOOLEAN.getIRI())); } }