sgvizler2
    Preparing search index...

    Important class. Runs SPARQL query against SPARQL endpoints.

    Dependencies:

    • sgvizler.util
    • sgvizler.namespace
    • sgvizler.registry
    • sgvizler.parser
    • sgvizler.loader
    • sgvizler.logger
    • sgvizler.defaults
    • jQuery
    • google.visualization

    Example of how to use the Query class:

    var sparqlQueryString = "SELECT * {?s ?p ?o} LIMIT 10",
        containerID = "myElementID",
        Q = new sgvizler.Query();
    
    // Note that default values may be set in the sgvizler object.
    Q.query(sparqlQueryString)
        .endpointURL("http://dbpedia.org/sparql")
        .endpointOutputFormat("json")                    // Possible values 'xml', 'json', 'jsonp'.
        .chartFunction("google.visualization.BarChart")  // The name of the function to draw the chart.
        .draw(containerID);                              // Draw the chart in the designated HTML element.
    

    sgvizler.Request

    sgvizler

    Index

    Constructors

    Properties

    listeners: any
    sparqlResult: any

    Accessors

    • get endpoint(): string

      Get endpoint URL.

      Returns string

      endpointURL

    • set endpoint(value: string): void

      Set endpoint URL.

      Parameters

      • value: string

      Returns void

      endpointURL

      sgvizler.endpointURL('http://sparql.dbpedia.org');
      sets this Query object's endpoint to DBpedia.

    Methods