Class DatasetDescription

  • public class DatasetDescription
    extends java.lang.Object
    • Constructor Detail

      • DatasetDescription

        public DatasetDescription()
      • DatasetDescription

        public DatasetDescription​(java.util.List<java.lang.String> defaultGraphURIs,
                                  java.util.List<java.lang.String> namedGraphURIs)
    • Method Detail

      • create

        public static DatasetDescription create​(java.util.List<java.lang.String> defaultGraphURIs,
                                                java.util.List<java.lang.String> namedGraphURIs)
      • create

        public static DatasetDescription create​(Query query)
        Create a dataset description, given a query. If the query does not have a dataset description, return null.
      • create

        public static DatasetDescription create​(Query query,
                                                Context context)
        Create a dataset description, given a query and context. The context overrides the query FROM/FROM NAMED. If neither the context nor query has a dataset description, return null. The context uses the key ARQConstants.sysDatasetDescription.
      • isEmpty

        public boolean isEmpty()
      • addDefaultGraphURI

        public void addDefaultGraphURI​(java.lang.String uri)
      • addAllDefaultGraphURIs

        public void addAllDefaultGraphURIs​(java.util.Collection<java.lang.String> uris)
      • addNamedGraphURI

        public void addNamedGraphURI​(java.lang.String uri)
      • addAllNamedGraphURIs

        public void addAllNamedGraphURIs​(java.util.Collection<java.lang.String> uris)
      • getDefaultGraphURIs

        public java.util.List<java.lang.String> getDefaultGraphURIs()
      • getNamedGraphURIs

        public java.util.List<java.lang.String> getNamedGraphURIs()
      • eachDefaultGraphURI

        public java.util.Iterator<java.lang.String> eachDefaultGraphURI()
      • eachNamedGraphURI

        public java.util.Iterator<java.lang.String> eachNamedGraphURI()
      • createDataset

        public Dataset createDataset()
        Create a dataset from the description - reads URLs into an in-memory dataset
      • createDatasetGraph

        public DatasetGraph createDatasetGraph()
        Create a DatasetGraph from the description - reads URLs into an in-memory DatasetGraph
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object