Package org.apache.commons.rdf.simple
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 IRI
static final Types
http://www.w3.org/1999/02/22-rdf-syntax-ns#HTMLstatic final Types
http://www.w3.org/1999/02/22-rdf-syntax-ns#langStringstatic final Types
Deprecated.Not used in RDF-1.1static final Types
http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteralstatic final Types
http://www.w3.org/2001/XMLSchema#anyURIstatic final Types
http://www.w3.org/2001/XMLSchema#base64Binarystatic final Types
http://www.w3.org/2001/XMLSchema#booleanstatic final Types
http://www.w3.org/2001/XMLSchema#bytestatic final Types
http://www.w3.org/2001/XMLSchema#datestatic final Types
http://www.w3.org/2001/XMLSchema#dateTimestatic final Types
http://www.w3.org/2001/XMLSchema#dayTimeDurationstatic final Types
http://www.w3.org/2001/XMLSchema#decimalstatic final Types
http://www.w3.org/2001/XMLSchema#doublestatic final Types
http://www.w3.org/2001/XMLSchema#durationstatic final Types
http://www.w3.org/2001/XMLSchema#floatstatic final Types
http://www.w3.org/2001/XMLSchema#gDaystatic final Types
http://www.w3.org/2001/XMLSchema#gMonthstatic final Types
http://www.w3.org/2001/XMLSchema#gMonthDaystatic final Types
http://www.w3.org/2001/XMLSchema#gYearstatic final Types
http://www.w3.org/2001/XMLSchema#gYearMonthstatic final Types
http://www.w3.org/2001/XMLSchema#hexBinarystatic final Types
http://www.w3.org/2001/XMLSchema#intstatic final Types
http://www.w3.org/2001/XMLSchema#integerstatic final Types
http://www.w3.org/2001/XMLSchema#languagestatic final Types
http://www.w3.org/2001/XMLSchema#longstatic final Types
http://www.w3.org/2001/XMLSchema#Namestatic final Types
http://www.w3.org/2001/XMLSchema#NCNamestatic final Types
http://www.w3.org/2001/XMLSchema#negativeIntegerstatic final Types
http://www.w3.org/2001/XMLSchema#NMTOKENstatic final Types
http://www.w3.org/2001/XMLSchema#nonNegativeIntegerstatic final Types
http://www.w3.org/2001/XMLSchema#nonPositiveIntegerstatic final Types
http://www.w3.org/2001/XMLSchema#normalizedStringstatic final Types
http://www.w3.org/2001/XMLSchema#positiveIntegerstatic final Types
http://www.w3.org/2001/XMLSchema#shortstatic final Types
http://www.w3.org/2001/XMLSchema#stringstatic final Types
http://www.w3.org/2001/XMLSchema#timestatic final Types
http://www.w3.org/2001/XMLSchema#tokenstatic final Types
http://www.w3.org/2001/XMLSchema#unsignedBytestatic final Types
http://www.w3.org/2001/XMLSchema#unsignedIntstatic final Types
http://www.w3.org/2001/XMLSchema#unsignedLongstatic final Types
http://www.w3.org/2001/XMLSchema#unsignedShort -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check 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.int
hashCode()
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:IRI
Return the IRI encoded as a native Unicode String.
The returned string must not include URL-encoding to escape non-ASCII characters.- Specified by:
getIRIString
in interfaceIRI
- Returns:
- The IRI encoded as a native Unicode String.
-
ntriplesString
Description copied from interface:RDFTerm
Return the term serialised as specified by the RDF-1.1 N-Triples Canonical form.- Specified by:
ntriplesString
in interfaceRDFTerm
- Returns:
- The term serialised as RDF-1.1 N-Triples.
- See Also:
-
equals
Description copied from interface:IRI
Check 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:IRI
Calculate 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 an immutable set of the IRIs used by the RDF-1.1 specification to define types, from the RDF and XML Schema vocabularies.- Returns:
- A
Set
containing all of the IRIs in this collection.
-
get
Get the IRI from this collection if it is present, or returnOptional.empty()
otherwise.- Parameters:
nextIRI
- The IRI to look for.- Returns:
- An
Optional
containing the IRI from this collection orOptional.empty()
if it is not present here.
-