com.upokecenter.util.RDFTerm

com.upokecenter.util.RDFTerm

public final class RDFTerm extends java.lang.Object

Fields

Methods

Field Details

BLANK

public static final int BLANK

Type value for a blank node.

IRI

public static final int IRI

Type value for an IRI (Internationalized Resource Identifier.).

LANGSTRING

public static final int LANGSTRING

Type value for a string with a language tag.

TYPEDSTRING

public static final int TYPEDSTRING

Type value for a piece of data serialized to a string.

A

public static final RDFTerm A

Predicate for RDF types.

FIRST

public static final RDFTerm FIRST

Predicate for the first object in a list.

NIL

public static final RDFTerm NIL

object for nil, the end of a list, or an empty list.

REST

public static final RDFTerm REST

Predicate for the remaining objects in a list.

FALSE

public static final RDFTerm FALSE

object for false.

TRUE

public static final RDFTerm TRUE

object for true.

Method Details

fromBlankNode

public static RDFTerm fromBlankNode​(java.lang.String name)

Not documented yet.

Parameters:

Returns:

Throws:

fromIRI

public static RDFTerm fromIRI​(java.lang.String iri)

Not documented yet.

Parameters:

Returns:

Throws:

fromLangString

public static RDFTerm fromLangString​(java.lang.String str, java.lang.String languageTag)

Not documented yet.

Parameters:

Returns:

Throws:

fromTypedString

public static RDFTerm fromTypedString​(java.lang.String str)

Not documented yet.

Parameters:

Returns:

fromTypedString

public static RDFTerm fromTypedString​(java.lang.String str, java.lang.String iri)

Not documented yet.

Parameters:

Returns:

Throws:

equals

public final boolean equals​(java.lang.Object obj)

Not documented yet.

Overrides:

Parameters:

Returns:

getKind

public int getKind()

Not documented yet.

Returns:

getTypeOrLanguage

public java.lang.String getTypeOrLanguage()

Gets the language tag or data type for this RDF literal.

Returns:

getValue

public java.lang.String getValue()

Gets the IRI, blank node identifier, or lexical form of an RDF literal.

Returns:

hashCode

public final int hashCode()

Not documented yet.

Overrides:

Returns:

isBlank

public boolean isBlank()

Gets a value indicating whether this term is a blank node.

Returns:

isIRI

public boolean isIRI​(java.lang.String str)

Not documented yet.

Parameters:

Returns:

isOrdinaryString

public boolean isOrdinaryString()

Not documented yet.

Returns:

toString

public final java.lang.String toString()

Gets a string representation of this RDF term in N-Triples format. The string will not end in a line break.

Overrides:

Returns:

Back to TurtleParser start page.