Package com.stardog.stark

# Class ExtractionQuery

java.lang.Object
com.stardog.stark.ExtractionQuery

public final class ExtractionQuery extends Object

Utility class to generate a SPARQL CONSTRUCT query that will extract all resources that have specified types or predicates. The generated query is a UNION of triple patterns in the form `?s a TYPE` or `?s PROPERTY ?o` where `TYPE` and `PROPERTY` are specified by the user.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ExtractionQuery()`
  No instances

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `generate(Collection<IRI> types, Collection<IRI> properties)`
  `static String`
  `generate(Collection<IRI> types, Collection<IRI> properties, Collection<IRI> graphs)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ExtractionQuery

    public ExtractionQuery()
    No instances

- ## Method Details

  - ### generate

    public static String generate(Collection<IRI> types, Collection<IRI> properties)

  - ### generate

    public static String generate(Collection<IRI> types, Collection<IRI> properties, Collection<IRI> graphs)