public interface ModelValueFactory
Modifier and Type | Method and Description |
---|---|
BlankNode |
createBlankNode()
Create (but do not add) a new blank node
|
BlankNode |
createBlankNode(String internalID)
Create a new blank node with the given internal ID.
|
DatatypeLiteral |
createDatatypeLiteral(String literal,
URI datatypeURI) |
LanguageTagLiteral |
createLanguageTagLiteral(String literal,
String langugeTag) |
PlainLiteral |
createPlainLiteral(String literal)
Create a new plain literal
|
Statement |
createStatement(Resource subject,
URI predicate,
Node object)
Create a new statement - but DOES NOT add it to the model
|
URI |
createURI(String uriString)
The model must create URIs it would accept itself.
|
boolean |
isValidURI(String uriString)
CHecks URI for syntax errors.
|
URI |
newRandomUniqueURI()
Implementations are free to choose if their semantics are unique within
the this model, the ModelSet, or unique in the universe
|
BlankNode createBlankNode()
BlankNode createBlankNode(String internalID)
internalID
- UnsupportedOperationException
- if the underlying store cannot create BlankNodes from IDs.IllegalArgumentException
- if the internalID could not be usedURI createURI(String uriString) throws IllegalArgumentException
IllegalArgumentException,
- e.g. if URI is invalidIllegalArgumentException
boolean isValidURI(String uriString)
uriString
- PlainLiteral createPlainLiteral(String literal)
literal
- LanguageTagLiteral createLanguageTagLiteral(String literal, String langugeTag) throws ModelRuntimeException
literal
- langugeTag
- ModelRuntimeException
- e.g. if the language tag is malformedDatatypeLiteral createDatatypeLiteral(String literal, URI datatypeURI) throws ModelRuntimeException
literal
- datatypeURI
- ModelRuntimeException
- e.g. if the datatype URI causes problemsStatement createStatement(Resource subject, URI predicate, Node object)
subject
- predicate
- object
- URI newRandomUniqueURI()
Copyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.