Class GraphList


public class GraphList extends Object
  • Constructor Details

    • GraphList

      public GraphList()
  • Method Details

    • listFromMember

      public static List<org.apache.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, Collection<org.apache.jena.graph.Node> acc)
    • listMember

      public static Iterator<org.apache.jena.graph.Triple> listMember(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node s, org.apache.jena.graph.Node o)
      Calculate ?s list:member ?o as if it were a graph.find
    • members

      public static List<org.apache.jena.graph.Node> members(GNode gnode)
    • members

      public static void members(GNode gnode, Collection<org.apache.jena.graph.Node> acc)
    • length

      public static int length(GNode gnode)
    • occurs

      public static int occurs(GNode gnode, org.apache.jena.graph.Node item)
    • contains

      public static boolean contains(GNode gnode, org.apache.jena.graph.Node item)
    • get

      public static org.apache.jena.graph.Node get(GNode gnode, int idx)
    • index

      public static int index(GNode gnode, org.apache.jena.graph.Node value)
    • indexes

      public static List<Integer> indexes(GNode gnode, org.apache.jena.graph.Node value)
    • triples

      public static void triples(GNode gnode, Collection<org.apache.jena.graph.Triple> acc)
    • allTriples

      public static List<org.apache.jena.graph.Triple> allTriples(GNode gnode)
    • allTriples

      public static void allTriples(GNode gnode, Collection<org.apache.jena.graph.Triple> acc)
    • findAllLists

      public static Set<org.apache.jena.graph.Node> findAllLists(org.apache.jena.graph.Graph graph)
      Expensive operation to find all the likely looking list heads in a model
    • listToTriples

      public static org.apache.jena.graph.Node listToTriples(List<org.apache.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)