it.uniroma2.art.owlart.io
Class RDFNodeSerializer

java.lang.Object
  extended by it.uniroma2.art.owlart.io.RDFNodeSerializer

public class RDFNodeSerializer
extends java.lang.Object


Constructor Summary
RDFNodeSerializer()
           
 
Method Summary
static ARTBNode createBNode(java.lang.String bnode)
           
static ARTLiteral createLiteral(java.lang.String literal, PrefixMapping map)
           
static ARTNode createNode(PrefixMapping map, java.lang.String node)
           
static ARTResource createResource(PrefixMapping map, java.lang.String resource)
           
static ARTURIResource createURI(PrefixMapping map, java.lang.String QNameOrURI)
           
static boolean isBlank(java.lang.String serNode)
           
static boolean isLiteral(java.lang.String serNode)
           
static boolean isName(java.lang.String nodeName)
           
static boolean isResource(java.lang.String serNode)
           
static java.lang.String toNT(ARTBNode node)
          NTRIPLES format for the serialization of nodes.
static java.lang.String toNT(ARTLiteral node)
          NTRIPLES format for the serialization of nodes.
static java.lang.String toNT(ARTNode node)
          NTRIPLES format for the serialization of nodes.
static java.lang.String toNT(ARTResource node)
          NTRIPLES format for the serialization of nodes.
static java.lang.String toNT(ARTURIResource node)
          NTRIPLES format for the serialization of nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFNodeSerializer

public RDFNodeSerializer()
Method Detail

toNT

public static java.lang.String toNT(ARTURIResource node)
NTRIPLES format for the serialization of nodes. Depends on the nature of the node.

Parameters:
node -
Returns:
for URIs/IRIs: <URI/IRI>, for BNodes: the _:id notation, for literals: literalvalue[^^<datatype>|@languagetag]

toNT

public static java.lang.String toNT(ARTBNode node)
NTRIPLES format for the serialization of nodes. Depends on the nature of the node.

Parameters:
node -
Returns:
for URIs/IRIs: <URI/IRI>, for BNodes: the _:id notation, for literals: "literalvalue"[^^<datatype>|@languagetag]

toNT

public static java.lang.String toNT(ARTLiteral node)
NTRIPLES format for the serialization of nodes. Depends on the nature of the node.

Parameters:
node -
Returns:
for URIs/IRIs: <URI/IRI>, for BNodes: the _:id notation, for literals: "literalvalue"[^^<datatype>|@languagetag]

toNT

public static java.lang.String toNT(ARTResource node)
NTRIPLES format for the serialization of nodes. Depends on the nature of the node.

Parameters:
node -
Returns:
for URIs/IRIs: <URI/IRI>, for BNodes: the _:id notation, for literals: "literalvalue"[^^<datatype>|@languagetag]

toNT

public static java.lang.String toNT(ARTNode node)
NTRIPLES format for the serialization of nodes. Depends on the nature of the node.

Parameters:
node -
Returns:
for URIs/IRIs: <URI/IRI>, for BNodes: the _:id notation, for literals: "literalvalue"[^^<datatype>|@languagetag]

createLiteral

public static ARTLiteral createLiteral(java.lang.String literal,
                                       PrefixMapping map)
                                throws ModelAccessException
Throws:
ModelAccessException

createURI

public static ARTURIResource createURI(PrefixMapping map,
                                       java.lang.String QNameOrURI)
                                throws ModelAccessException
Throws:
ModelAccessException

createBNode

public static ARTBNode createBNode(java.lang.String bnode)
                            throws ModelAccessException
Throws:
ModelAccessException

createResource

public static ARTResource createResource(PrefixMapping map,
                                         java.lang.String resource)
                                  throws ModelAccessException
Throws:
ModelAccessException

createNode

public static ARTNode createNode(PrefixMapping map,
                                 java.lang.String node)
                          throws ModelAccessException
Throws:
ModelAccessException

isName

public static boolean isName(java.lang.String nodeName)

isBlank

public static boolean isBlank(java.lang.String serNode)

isResource

public static boolean isResource(java.lang.String serNode)

isLiteral

public static boolean isLiteral(java.lang.String serNode)


Copyright © 2013 ART Group, University of Rome, Tor Vergata. All Rights Reserved.