com.hp.hpl.jena.sparql.util.graph
Class GraphList
java.lang.Object
com.hp.hpl.jena.sparql.util.graph.GraphList
public class GraphList
- extends java.lang.Object
|
Method Summary |
static java.util.List<com.hp.hpl.jena.graph.Triple> |
allTriples(GNode gnode)
|
static void |
allTriples(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Triple> acc)
|
static boolean |
contains(GNode gnode,
com.hp.hpl.jena.graph.Node item)
|
static java.util.Set<com.hp.hpl.jena.graph.Node> |
findAllLists(com.hp.hpl.jena.graph.Graph graph)
Expensive operation to find all the likely looking list heads in a model |
static com.hp.hpl.jena.graph.Node |
get(GNode gnode,
int idx)
|
static int |
index(GNode gnode,
com.hp.hpl.jena.graph.Node value)
|
static java.util.List<java.lang.Integer> |
indexes(GNode gnode,
com.hp.hpl.jena.graph.Node value)
|
static boolean |
isListNode(GNode gnode)
|
static int |
length(GNode gnode)
|
static java.util.List<com.hp.hpl.jena.graph.Node> |
listFromMember(GNode gnode)
Starting at a list element, find the heads of lists it is in |
static void |
listFromMember(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Node> acc)
|
static com.hp.hpl.jena.graph.Node |
listToTriples(java.util.List<com.hp.hpl.jena.graph.Node> list,
BasicPattern bgp)
Convert a list of nodes into triples, placing them in BPG, returning the head of the list |
static java.util.List<com.hp.hpl.jena.graph.Node> |
members(GNode gnode)
|
static void |
members(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Node> acc)
|
static int |
occurs(GNode gnode,
com.hp.hpl.jena.graph.Node item)
|
static void |
triples(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Triple> acc)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphList
public GraphList()
listFromMember
public static java.util.List<com.hp.hpl.jena.graph.Node> listFromMember(GNode gnode)
- Starting at a list element, find the heads of lists it is in
listFromMember
public static void listFromMember(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Node> acc)
members
public static java.util.List<com.hp.hpl.jena.graph.Node> members(GNode gnode)
members
public static void members(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Node> acc)
length
public static int length(GNode gnode)
occurs
public static int occurs(GNode gnode,
com.hp.hpl.jena.graph.Node item)
contains
public static boolean contains(GNode gnode,
com.hp.hpl.jena.graph.Node item)
get
public static com.hp.hpl.jena.graph.Node get(GNode gnode,
int idx)
index
public static int index(GNode gnode,
com.hp.hpl.jena.graph.Node value)
indexes
public static java.util.List<java.lang.Integer> indexes(GNode gnode,
com.hp.hpl.jena.graph.Node value)
triples
public static void triples(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Triple> acc)
allTriples
public static java.util.List<com.hp.hpl.jena.graph.Triple> allTriples(GNode gnode)
allTriples
public static void allTriples(GNode gnode,
java.util.Collection<com.hp.hpl.jena.graph.Triple> acc)
findAllLists
public static java.util.Set<com.hp.hpl.jena.graph.Node> findAllLists(com.hp.hpl.jena.graph.Graph graph)
- Expensive operation to find all the likely looking list heads in a model
listToTriples
public static com.hp.hpl.jena.graph.Node listToTriples(java.util.List<com.hp.hpl.jena.graph.Node> list,
BasicPattern bgp)
- Convert a list of nodes into triples, placing them in BPG, returning the head of the list
isListNode
public static boolean isListNode(GNode gnode)
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.