SPARQLcimTest

public class SPARQLcimTest extends Object

This class runs an example SQARQL query against CIM XML

Future versions of GridAPPS-D will rely more heavily on SPARQL queries to do the selection and filtering, as the preferred pattern for developers working with CIM. This example uses several triples to execute a query on LinearShuntCompensators (aka capacitors).

Invoke as a console-mode program

Author:Tom McDermott

See also: SPARQLcimTest.main

Fields

baseURI

static final String baseURI

identifies gridlabd

nsCIM

static final String nsCIM

namespace for CIM; should match the CIM version used to generate the RDF

nsRDF

static final String nsRDF

namespace for RDF

Methods

GLD_Name

static String GLD_Name(String arg, boolean bus)

convert a CIM name to GridLAB-D name, replacing unallowed characters

main

public static void main(String[] args)

Reads command-line input for the converter

Parameters:
  • args – will be SPARQLcimTest [options] input.xml

Options: -e={u|i} encoding; UTF-8 or ISO-8859-1; choose u if input.xml came from OpenDSS