it.uniroma2.art.owlart.query
Class QueryLanguage

java.lang.Object
  extended by it.uniroma2.art.owlart.query.QueryLanguage

public class QueryLanguage
extends java.lang.Object

This class is both a definition class for query languages as well as a static container for languages which can be accepted by a specific RDF triple store technology

Author:
Armando Stellato

Field Summary
static QueryLanguage SPARQL
          the SPARQL query language, the standard RDF query language recommended by W3C
 
Method Summary
 java.lang.String getName()
          returns the name of the Query Language
static QueryLanguage parseLanguage(java.lang.String ql)
          given a string identifier, returns the query language associated to it in this class registry
static void registerNewLanguage(java.lang.String langName)
          this method can be used by developers of new triple store technology adapters for OWL Art API, to register a new query language which can be accepted by their wrapped technology
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPARQL

public static final QueryLanguage SPARQL
the SPARQL query language, the standard RDF query language recommended by W3C

Method Detail

getName

public java.lang.String getName()
returns the name of the Query Language

Returns:

registerNewLanguage

public static void registerNewLanguage(java.lang.String langName)
this method can be used by developers of new triple store technology adapters for OWL Art API, to register a new query language which can be accepted by their wrapped technology

Parameters:
langName -

parseLanguage

public static QueryLanguage parseLanguage(java.lang.String ql)
given a string identifier, returns the query language associated to it in this class registry

Parameters:
ql -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011 ART Group, University of Rome, Tor Vergata. All Rights Reserved.