public static interface ResourceFactory.Interface
| Modifier and Type | Method and Description |
|---|---|
Literal |
createPlainLiteral(String string)
Answer a plain (untyped) literal with no language and the given content.
|
Property |
createProperty(String uriref)
create a new property.
|
Property |
createProperty(String namespace,
String localName)
create a new property.
|
Resource |
createResource()
create a new anonymous resource.
|
Resource |
createResource(String uriref)
create a new resource.
|
Statement |
createStatement(Resource subject,
Property predicate,
RDFNode object)
create a new statement.
|
Literal |
createTypedLiteral(Object value)
Answer a typed literal.
|
Literal |
createTypedLiteral(String string,
RDFDatatype datatype)
Answer a typed literal.
|
Resource createResource()
Resource createResource(String uriref)
uriref - URIREF of the resourceLiteral createPlainLiteral(String string)
string - the string which forms the value of the literalLiteral createTypedLiteral(String string, RDFDatatype datatype)
string - the string which forms the value of the literaldatatype - RDFDatatype of the type literalLiteral createTypedLiteral(Object value)
value - a java Object, the default RDFDatatype for that object will be usedProperty createProperty(String uriref)
uriref - URIREF of the propertyProperty createProperty(String namespace, String localName)
namespace - uriref of the namespacelocalName - localname of the propertyLicenced under the Apache License, Version 2.0