|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ResourceFactory.Interface
the interface to resource factory objects.
Method Summary | |
---|---|
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. |
Method Detail |
---|
Resource createResource()
Resource createResource(String uriref)
uriref
- URIREF of the resource
Literal createPlainLiteral(String string)
string
- the string which forms the value of the literal
Literal createTypedLiteral(String string, RDFDatatype datatype)
string
- the string which forms the value of the literaldatatype
- RDFDatatype of the type literal
Literal createTypedLiteral(Object value)
value
- a java Object, the default RDFDatatype for that object will be used
Property createProperty(String uriref)
uriref
- URIREF of the property
Property createProperty(String namespace, String localName)
namespace
- uriref of the namespacelocalName
- localname of the property
Statement createStatement(Resource subject, Property predicate, RDFNode object)
subject
- subject of the new statementpredicate
- predicate of the new statementobject
- object of the new statement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |