public static interface ResourceFactory.Interface
Modifier and Type | Method and Description |
---|---|
Literal |
createLangLiteral(String string,
String lang)
Answer a plain (untyped) literal with no language and the given content.
|
default Literal |
createPlainLiteral(String string)
Deprecated.
|
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 |
createStringLiteral(String string)
Answer a string (xsd:string) literal.
|
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 createStringLiteral(String string)
string
- the string which forms the value of the literal@Deprecated default Literal createPlainLiteral(String string)
Literal createLangLiteral(String string, String lang)
string
- the string which forms the value of the literallang
- The language tag to be usedLiteral 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