| java.lang.Object com.hp.hpl.jena.graph.test.NodeCreateUtils
NodeCreateUtils | public class NodeCreateUtils (Code) | | Creating nodes from string specifications.
|
Method Summary | |
public static Node | create(String x) Returns a Node described by the string, primarily for testing purposes.
The string represents a URI, a numeric literal, a string literal, a bnode label,
or a variable. | public static Node | create(PrefixMapping pm, String x) Returns a Node described by the string, primarily for testing purposes.
The string represents a URI, a numeric literal, a string literal, a bnode label,
or a variable. | public static LiteralLabel | literal(PrefixMapping pm, String spelling, String langOrType) | public static LiteralLabel | newString(PrefixMapping pm, char quote, String nodeString) | public static String | unEscape(String spelling) | public static char | unEscape(char ch) |
create | public static Node create(String x)(Code) | | Returns a Node described by the string, primarily for testing purposes.
The string represents a URI, a numeric literal, a string literal, a bnode label,
or a variable.
- 'some text' :: a string literal with that text
- 'some text'someLanguage:: a string literal with that text and language
- 'some text'someURI:: a typed literal with that text and datatype
- digits :: a literal [OF WHAT TYPE] with that [numeric] value
- _XXX :: a bnode with an AnonId built from _XXX
- ?VVV :: a variable with name VVV
- &PPP :: to be done
- name:stuff :: the URI; name may be expanded using the Extended map
Parameters: x - the string describing the node a node of the appropriate type with the appropriate label |
create | public static Node create(PrefixMapping pm, String x)(Code) | | Returns a Node described by the string, primarily for testing purposes.
The string represents a URI, a numeric literal, a string literal, a bnode label,
or a variable.
- 'some text' :: a string literal with that text
- 'some text'someLanguage:: a string literal with that text and language
- 'some text'someURI:: a typed literal with that text and datatype
- digits :: a literal [OF WHAT TYPE] with that [numeric] value
- _XXX :: a bnode with an AnonId built from _XXX
- ?VVV :: a variable with name VVV
- &PPP :: to be done
- name:stuff :: the URI; name may be expanded using the Extended map
Parameters: pm - the PrefixMapping for translating pre:X strings Parameters: x - the string encoding the node to create a node with the appropriate type and label |
unEscape | public static char unEscape(char ch)(Code) | | |
|
|