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 propertyCopyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP