public class Graph extends java.util.concurrent.CopyOnWriteArraySet<Link>
Constructor and Description |
---|
Graph()
Default constructor.
|
Graph(Link defaultLink)
Constructor with a default link.
|
Modifier and Type | Method and Description |
---|---|
Link |
add(Graph sourceGraph,
Reference typeRef,
Literal targetLit)
Creates then adds a link.
|
Link |
add(Graph sourceGraph,
Reference typeRef,
Reference targetRef)
Creates then adds a link.
|
Link |
add(Reference sourceRef,
Reference typeRef,
Literal targetLit)
Creates then adds a link.
|
Link |
add(Reference sourceRef,
Reference typeRef,
Reference targetRef)
Creates then adds a link.
|
Link |
add(Reference sourceRef,
java.lang.String typeRef,
Literal targetLit)
Creates then adds a link.
|
Link |
add(Reference sourceRef,
java.lang.String typeRef,
Reference targetRef)
Creates then adds a link.
|
Link |
add(java.lang.String sourceRef,
Reference typeRef,
Literal targetLit)
Creates then adds a link.
|
Link |
add(java.lang.String sourceRef,
Reference typeRef,
Reference targetRef)
Creates then adds a link.
|
Link |
add(java.lang.String sourceRef,
java.lang.String typeRef,
Literal targetLit)
Creates then adds a link.
|
Link |
add(java.lang.String sourceRef,
java.lang.String typeRef,
Reference targetRef)
Creates then adds a link.
|
Link |
addLiteral(Graph sourceGraph,
java.lang.String typeRef,
java.lang.String targetLit)
Creates then adds a link.
|
Link |
addLiteral(java.lang.String sourceRef,
java.lang.String typeRef,
java.lang.String targetLit)
Creates then adds a link.
|
Link |
addReference(Graph sourceGraph,
java.lang.String typeRef,
java.lang.String targetRef)
Creates then adds a link.
|
Link |
addReference(java.lang.String sourceRef,
java.lang.String typeRef,
java.lang.String targetRef)
Creates then adds a link.
|
Link |
getDefaultLink()
Returns the default link that is used to complete new links.
|
Representation |
getRdfN3Representation()
Returns a representation in the RDF/n3 format.
|
Representation |
getRdfNTriplesRepresentation()
Returns a representation in the RDF/N-Triples format.
|
Representation |
getRdfTurtleRepresentation()
Returns a representation in the RDF/Turtle format.
|
Representation |
getRdfXmlRepresentation()
Returns a representation in the RDF/XML format.
|
void |
setDefaultLink(Link defaultLink)
Sets the default link that is used to complete new links.
|
add, addAll, clear, contains, containsAll, equals, forEach, isEmpty, iterator, remove, removeAll, removeIf, retainAll, size, spliterator, toArray, toArray
public Graph()
public Graph(Link defaultLink)
defaultLink
- The link to use when adding links with missing properties.public Link add(Graph sourceGraph, Reference typeRef, Literal targetLit)
getDefaultLink()
is used instead if possible.sourceGraph
- The source graph.typeRef
- The type reference.targetLit
- The target literal.public Link add(Graph sourceGraph, Reference typeRef, Reference targetRef)
getDefaultLink()
is used instead if possible.sourceGraph
- The source graph.typeRef
- The type reference.targetRef
- The target reference.public Link add(Reference sourceRef, Reference typeRef, Literal targetLit)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetLit
- The target literal.public Link add(Reference sourceRef, Reference typeRef, Reference targetRef)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetRef
- The target resource reference.public Link add(Reference sourceRef, java.lang.String typeRef, Literal targetLit)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetLit
- The target literal.public Link add(Reference sourceRef, java.lang.String typeRef, Reference targetRef)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetRef
- The target resource reference.public Link add(java.lang.String sourceRef, Reference typeRef, Literal targetLit)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetLit
- The target literal.public Link add(java.lang.String sourceRef, Reference typeRef, Reference targetRef)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetRef
- The target resource reference.public Link add(java.lang.String sourceRef, java.lang.String typeRef, Literal targetLit)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetLit
- The target literal.public Link add(java.lang.String sourceRef, java.lang.String typeRef, Reference targetRef)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetRef
- The target resource reference.public Link addLiteral(Graph sourceGraph, java.lang.String typeRef, java.lang.String targetLit)
getDefaultLink()
is used instead if possible.sourceGraph
- The source graph.typeRef
- The type reference.targetLit
- The target literal.public Link addLiteral(java.lang.String sourceRef, java.lang.String typeRef, java.lang.String targetLit)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetLit
- The target literal.public Link addReference(Graph sourceGraph, java.lang.String typeRef, java.lang.String targetRef)
getDefaultLink()
is used instead if possible.sourceGraph
- The source graph.typeRef
- The type reference.targetRef
- The target reference.public Link addReference(java.lang.String sourceRef, java.lang.String typeRef, java.lang.String targetRef)
getDefaultLink()
is used instead if possible.sourceRef
- The source resource reference.typeRef
- The type reference.targetRef
- The target resource reference.public Link getDefaultLink()
public Representation getRdfN3Representation()
public Representation getRdfNTriplesRepresentation()
public Representation getRdfTurtleRepresentation()
public Representation getRdfXmlRepresentation()
public void setDefaultLink(Link defaultLink)
defaultLink
- The default link that is used to complete new links.Copyright © 2005-2024 Restlet.