Class ExtractionQuery


  • public final class ExtractionQuery
    extends java.lang.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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String generate​(java.util.Collection<IRI> types, java.util.Collection<IRI> properties)  
      static java.lang.String generate​(java.util.Collection<IRI> types, java.util.Collection<IRI> properties, java.util.Collection<IRI> graphs)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExtractionQuery

        public ExtractionQuery()
        No instances
    • Method Detail

      • generate

        public static java.lang.String generate​(java.util.Collection<IRI> types,
                                                java.util.Collection<IRI> properties)
      • generate

        public static java.lang.String generate​(java.util.Collection<IRI> types,
                                                java.util.Collection<IRI> properties,
                                                java.util.Collection<IRI> graphs)