public class GLib extends Object
Modifier and Type | Field and Description |
---|---|
static Transform<Quad,Node> |
projectQuadGraphName
Transform quad to graphname
|
static Transform<Quad,Node> |
projectQuadObject
Transform quad to object
|
static Transform<Quad,Node> |
projectQuadPredicate
Transform quad to predicate
|
static Transform<Quad,Node> |
projectQuadSubject
Transform quad to subject
|
static Transform<Triple,Node> |
projectTripeObject
Transform triple to object
|
static Transform<Triple,Node> |
projectTripePredicate
Transform triple to predicate
|
static Transform<Triple,Node> |
projectTripeSubject
Transform triple to subject
|
Constructor and Description |
---|
GLib() |
Modifier and Type | Method and Description |
---|---|
static Iterator<Node> |
listObjects(Graph graph)
List the objects in a graph (no duplicates)
|
static Iterator<Node> |
listPredicates(Graph graph)
List the predicates in a graph (no duplicates)
|
static Iterator<Node> |
listSubjects(Graph graph)
List the subjects in a graph (no duplicates)
|
static Node |
nullAsAny(Node x)
Convert null to Node.ANY
|
static Node |
nullAsDft(Node x,
Node dft)
Convert null to some default Node
|
static Iterator<Node> |
quad2graphName(Iterator<Quad> iter)
Project quad to graphname
|
static Iterator<Node> |
quad2object(Iterator<Quad> iter)
Project quad to object
|
static Iterator<Node> |
quad2predicate(Iterator<Quad> iter)
Project quad to predicate
|
static Iterator<Node> |
quad2subject(Iterator<Quad> iter)
Project quad to graphname
|
static Iter<Triple> |
quads2triples(Iterator<Quad> iter)
Project quads to triples
|
static Iterator<Node> |
triple2object(Iterator<Triple> iter)
Project triple to object
|
static Iterator<Node> |
triple2predicate(Iterator<Triple> iter)
Project triple to predicate
|
static Iterator<Node> |
triple2subject(Iterator<Triple> iter)
Project triple to subject
|
public static Transform<Quad,Node> projectQuadGraphName
public static Transform<Quad,Node> projectQuadPredicate
public static Transform<Triple,Node> projectTripeSubject
public static Transform<Triple,Node> projectTripePredicate
public static Iterator<Node> listSubjects(Graph graph)
public static Iterator<Node> listPredicates(Graph graph)
public static Iterator<Node> listObjects(Graph graph)
public static Iter<Triple> quads2triples(Iterator<Quad> iter)
public static Iterator<Node> quad2graphName(Iterator<Quad> iter)
public static Iterator<Node> quad2subject(Iterator<Quad> iter)
public static Iterator<Node> quad2predicate(Iterator<Quad> iter)
public static Iterator<Node> triple2subject(Iterator<Triple> iter)
public static Iterator<Node> triple2predicate(Iterator<Triple> iter)
Licenced under the Apache License, Version 2.0