Class SPARQLUtils


  • public class SPARQLUtils
    extends java.lang.Object
    Since:
    5.3
    Version:
    5.3
    Author:
    Pedro Oliveira
    • Constructor Summary

      Constructors 
      Constructor Description
      SPARQLUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String from​(IRI... theContexts)
      Generates a list of FROMs for the given contexts
      static java.lang.String numberedOptionals​(IRI... theProperties)
      Generates a list of OPTIONAL { ?subj :property ?0/1/2..}
      static java.lang.String union​(IRI... theProperties)
      Generates a list of {?subj :property ?obj} UNIONs
      • Methods inherited from class java.lang.Object

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

      • SPARQLUtils

        public SPARQLUtils()
    • Method Detail

      • from

        public static java.lang.String from​(IRI... theContexts)
        Generates a list of FROMs for the given contexts
      • union

        public static java.lang.String union​(IRI... theProperties)
        Generates a list of {?subj :property ?obj} UNIONs
      • numberedOptionals

        public static java.lang.String numberedOptionals​(IRI... theProperties)
        Generates a list of OPTIONAL { ?subj :property ?0/1/2..}