Class Types
java.lang.Object
org.apache.commons.rdf.simple.Types
- All Implemented Interfaces:
BlankNodeOrIRI, IRI, RDFTerm, SimpleRDF.SimpleRDFTerm
Types from the RDF and XML Schema vocabularies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IRIstatic final Typeshttp://www.w3.org/1999/02/22-rdf-syntax-ns#HTMLstatic final Typeshttp://www.w3.org/1999/02/22-rdf-syntax-ns#langStringstatic final TypesDeprecated.Not used in RDF-1.1static final Typeshttp://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteralstatic final Typeshttp://www.w3.org/2001/XMLSchema#anyURIstatic final Typeshttp://www.w3.org/2001/XMLSchema#base64Binarystatic final Typeshttp://www.w3.org/2001/XMLSchema#booleanstatic final Typeshttp://www.w3.org/2001/XMLSchema#bytestatic final Typeshttp://www.w3.org/2001/XMLSchema#datestatic final Typeshttp://www.w3.org/2001/XMLSchema#dateTimestatic final Typeshttp://www.w3.org/2001/XMLSchema#dayTimeDurationstatic final Typeshttp://www.w3.org/2001/XMLSchema#decimalstatic final Typeshttp://www.w3.org/2001/XMLSchema#doublestatic final Typeshttp://www.w3.org/2001/XMLSchema#durationstatic final Typeshttp://www.w3.org/2001/XMLSchema#floatstatic final Typeshttp://www.w3.org/2001/XMLSchema#gDaystatic final Typeshttp://www.w3.org/2001/XMLSchema#gMonthstatic final Typeshttp://www.w3.org/2001/XMLSchema#gMonthDaystatic final Typeshttp://www.w3.org/2001/XMLSchema#gYearstatic final Typeshttp://www.w3.org/2001/XMLSchema#gYearMonthstatic final Typeshttp://www.w3.org/2001/XMLSchema#hexBinarystatic final Typeshttp://www.w3.org/2001/XMLSchema#intstatic final Typeshttp://www.w3.org/2001/XMLSchema#integerstatic final Typeshttp://www.w3.org/2001/XMLSchema#languagestatic final Typeshttp://www.w3.org/2001/XMLSchema#longstatic final Typeshttp://www.w3.org/2001/XMLSchema#Namestatic final Typeshttp://www.w3.org/2001/XMLSchema#NCNamestatic final Typeshttp://www.w3.org/2001/XMLSchema#negativeIntegerstatic final Typeshttp://www.w3.org/2001/XMLSchema#NMTOKENstatic final Typeshttp://www.w3.org/2001/XMLSchema#nonNegativeIntegerstatic final Typeshttp://www.w3.org/2001/XMLSchema#nonPositiveIntegerstatic final Typeshttp://www.w3.org/2001/XMLSchema#normalizedStringstatic final Typeshttp://www.w3.org/2001/XMLSchema#positiveIntegerstatic final Typeshttp://www.w3.org/2001/XMLSchema#shortstatic final Typeshttp://www.w3.org/2001/XMLSchema#stringstatic final Typeshttp://www.w3.org/2001/XMLSchema#timestatic final Typeshttp://www.w3.org/2001/XMLSchema#tokenstatic final Typeshttp://www.w3.org/2001/XMLSchema#unsignedBytestatic final Typeshttp://www.w3.org/2001/XMLSchema#unsignedIntstatic final Typeshttp://www.w3.org/2001/XMLSchema#unsignedLongstatic final Typeshttp://www.w3.org/2001/XMLSchema#unsignedShort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck it this IRI is equal to another IRI.Get the IRI from this collection if it is present, or returnOptional.empty()otherwise.Return the IRI encoded as a native Unicode String.
The returned string must not include URL-encoding to escape non-ASCII characters.inthashCode()Calculate a hash code for this IRI.Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.toString()values()Get an immutable set of the IRIs used by the RDF-1.1 specification to define types, from the RDF and XML Schema vocabularies.
-
Field Details
-
RDF_HTML
http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML -
RDF_LANGSTRING
http://www.w3.org/1999/02/22-rdf-syntax-ns#langString -
RDF_PLAINLITERAL
Deprecated.Not used in RDF-1.1http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral -
RDF_XMLLITERAL
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral -
XSD_ANYURI
http://www.w3.org/2001/XMLSchema#anyURI -
XSD_BASE64BINARY
http://www.w3.org/2001/XMLSchema#base64Binary -
XSD_BOOLEAN
http://www.w3.org/2001/XMLSchema#boolean -
XSD_BYTE
http://www.w3.org/2001/XMLSchema#byte -
XSD_DATE
http://www.w3.org/2001/XMLSchema#date -
XSD_DATETIME
http://www.w3.org/2001/XMLSchema#dateTime -
XSD_DAYTIMEDURATION
http://www.w3.org/2001/XMLSchema#dayTimeDuration -
XSD_DECIMAL
http://www.w3.org/2001/XMLSchema#decimal -
XSD_DOUBLE
http://www.w3.org/2001/XMLSchema#double -
XSD_DURATION
http://www.w3.org/2001/XMLSchema#duration -
XSD_FLOAT
http://www.w3.org/2001/XMLSchema#float -
XSD_GDAY
http://www.w3.org/2001/XMLSchema#gDay -
XSD_GMONTH
http://www.w3.org/2001/XMLSchema#gMonth -
XSD_GMONTHDAY
http://www.w3.org/2001/XMLSchema#gMonthDay -
XSD_GYEAR
http://www.w3.org/2001/XMLSchema#gYear -
XSD_GYEARMONTH
http://www.w3.org/2001/XMLSchema#gYearMonth -
XSD_HEXBINARY
http://www.w3.org/2001/XMLSchema#hexBinary -
XSD_INT
http://www.w3.org/2001/XMLSchema#int -
XSD_INTEGER
http://www.w3.org/2001/XMLSchema#integer -
XSD_LANGUAGE
http://www.w3.org/2001/XMLSchema#language -
XSD_LONG
http://www.w3.org/2001/XMLSchema#long -
XSD_NAME
http://www.w3.org/2001/XMLSchema#Name -
XSD_NCNAME
http://www.w3.org/2001/XMLSchema#NCName -
XSD_NEGATIVEINTEGER
http://www.w3.org/2001/XMLSchema#negativeInteger -
XSD_NMTOKEN
http://www.w3.org/2001/XMLSchema#NMTOKEN -
XSD_NONNEGATIVEINTEGER
http://www.w3.org/2001/XMLSchema#nonNegativeInteger -
XSD_NONPOSITIVEINTEGER
http://www.w3.org/2001/XMLSchema#nonPositiveInteger -
XSD_NORMALIZEDSTRING
http://www.w3.org/2001/XMLSchema#normalizedString -
XSD_POSITIVEINTEGER
http://www.w3.org/2001/XMLSchema#positiveInteger -
XSD_SHORT
http://www.w3.org/2001/XMLSchema#short -
XSD_STRING
http://www.w3.org/2001/XMLSchema#string -
XSD_TIME
http://www.w3.org/2001/XMLSchema#time -
XSD_TOKEN
http://www.w3.org/2001/XMLSchema#token -
XSD_UNSIGNEDBYTE
http://www.w3.org/2001/XMLSchema#unsignedByte -
XSD_UNSIGNEDINT
http://www.w3.org/2001/XMLSchema#unsignedInt -
XSD_UNSIGNEDLONG
http://www.w3.org/2001/XMLSchema#unsignedLong -
XSD_UNSIGNEDSHORT
http://www.w3.org/2001/XMLSchema#unsignedShort -
ALL_TYPES
-
field
-
-
Constructor Details
-
Types
-
-
Method Details
-
getIRIString
Description copied from interface:IRIReturn the IRI encoded as a native Unicode String.
The returned string must not include URL-encoding to escape non-ASCII characters.- Specified by:
getIRIStringin interfaceIRI- Returns:
- The IRI encoded as a native Unicode String.
-
ntriplesString
Description copied from interface:RDFTermReturn the term serialised as specified by the RDF-1.1 N-Triples Canonical form.- Specified by:
ntriplesStringin interfaceRDFTerm- Returns:
- The term serialised as RDF-1.1 N-Triples.
- See Also:
-
equals
Description copied from interface:IRICheck it this IRI is equal to another IRI.IRI equality: Two IRIs are equal if and only if they are equivalent under Simple String Comparison according to section 5.1 of [RFC3987]. Further normalization MUST NOT be performed when comparing IRIs for equality.
Two IRI instances are equal if and only if theirIRI.getIRIString()are equal. Implementations MUST also overrideIRI.hashCode()so that two equal IRIs produce the same hash code. -
hashCode
public int hashCode()Description copied from interface:IRICalculate a hash code for this IRI.The returned hash code MUST be equal to the
String.hashCode()of theIRI.getIRIString().This method MUST be implemented in conjunction with
IRI.equals(Object)so that two equal IRIs produce the same hash code. -
toString
-
values
-
get
Get the IRI from this collection if it is present, or returnOptional.empty()otherwise.- Parameters:
nextIRI- The IRI to look for.- Returns:
- An
Optionalcontaining the IRI from this collection orOptional.empty()if it is not present here.
-