info.sswap.api.model
Interface SSWAPLiteral

All Superinterfaces:
SSWAPElement, SSWAPModel

public interface SSWAPLiteral
extends SSWAPElement

Represents a literal value in SSWAP. Literals are immutable and are set as an assignment with a SSWAPProperty.

Author:
Blazej Bulka
See Also:
SSWAPProperty

Method Summary
 java.net.URI getDatatypeURI()
          Gets the URI of the datatype.
 java.lang.String getLanguage()
          Gets the language of the literal (if specified)
 
Methods inherited from interface info.sswap.api.model.SSWAPElement
addComment, addLabel, asBoolean, asDouble, asIndividual, asInteger, asList, asLiteral, asString, getComment, getLabel, isIndividual, isList, isLiteral
 
Methods inherited from interface info.sswap.api.model.SSWAPModel
addImport, checkProfile, dereference, dereference, doClosure, getDocument, getImports, getInputStream, getNsPrefixMap, getReasoningService, getTypeSignature, getURI, isDereferenced, removeImport, removeNsPrefix, serialize, serialize, setNsPrefix, validate
 

Method Detail

getDatatypeURI

java.net.URI getDatatypeURI()
Gets the URI of the datatype. For the standard XSD datatypes, it is advised to use constants defined in XSD class (com.hp.hpl.jena.vocabulary); for example, XSD.xstring.toString() for "xsd:string" and XSD.anyURI.toString() for "xsd:anyURI".

Returns:
the URI of the datatype (if specified) or null.

getLanguage

java.lang.String getLanguage()
Gets the language of the literal (if specified)

Returns:
the language code or null if no language is specified


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.