Twinkle: A SPARQL Query Tool Leigh Dodds, Oxford SWIG, March 2008 Photo Credit:  Glen Bowman
What Is It? A GUI for writing and running SPARQL queries
 
Data Sources Local Files Remote Files Jena Databases Any combination of these
SPARQL Endpoints Complete SPARQL Client Useful pre-configured sources, e.g.  DBPedia
But Wait, There’s More RDFS and OWL Inferencing Jena Rules Engine And any combination
 
Demonstration (Where It All Goes Wrong)
The Secret Sauce ARQ  SPARQL query engine The Jena  Assembler API
Jena Assembler API Declaratively describe how to build a Jena Model URIs, Databases Add default content Apply schemas, reasoning
:periodicTable a ja:MemoryModel ; ja:content [ ja:externalContent  <http://www.daml.org/2003/01/periodictable/PeriodicTable.owl> ]  ; rdfs:label &quot;Periodic Table&quot; . Config Example
:nlm ja:modelName &quot;nlm-data&quot; ; ja:connection :nlm-connection ; rdfs:label &quot;NLM Data&quot; . :nlm-connection ja:dbURL <jdbc:mysql://127.0.0.1:3306/facet> ; ja:dbClass &quot;com.mysql.jdbc.Driver&quot; ; ja:dbType &quot;MySQL&quot; ; ja:dbUser &quot;facet&quot; ; ja:dbPassword “*********&quot; Config Example (2)
<http://dbpedia.org/sparql> a sources:Endpoint ; sources:defaultGraph &quot;http://dbpedia.org&quot; ; rdfs:label &quot;DBpedia.org&quot;. <http://www.rdfabout.com/sparql> a sources:Endpoint ; rdfs:label &quot;GovTrack.us&quot;. Config Example (3)
Where It All Goes etc\config.n3 Describe (and label) models Prefix Mappings
Prefix Mappings Quickly add PREFIX statement to query Pre configured vocabularies Add your own…
Prefix Mappings :foaf a ja:PrefixMapping  ; rdfs:label &quot;FOAF&quot; ; ja:prefix &quot;foaf&quot; ; ja:namespace &quot;http://xmlns.com/foaf/0.1/&quot; .
Demonstration (2)
… And Yet More ARQ  Function  &  Property  Library ARQ Extensions  (e.g. COUNT, GROUP BY)
Future Plans Documentation! SPARQL Endpoint Access Control Model Caching Syntax Highlighting More Eye Candy Move to Google Code (Your Feature Here)
Questions? Twinkle Homepage Annotated Screenshots http://www.slideshare.net/ldodds/twinkle-a-sparql-query-tool/

Twinkle: A SPARQL Query Tool

  • 1.
    Twinkle: A SPARQLQuery Tool Leigh Dodds, Oxford SWIG, March 2008 Photo Credit: Glen Bowman
  • 2.
    What Is It?A GUI for writing and running SPARQL queries
  • 3.
  • 4.
    Data Sources LocalFiles Remote Files Jena Databases Any combination of these
  • 5.
    SPARQL Endpoints CompleteSPARQL Client Useful pre-configured sources, e.g. DBPedia
  • 6.
    But Wait, There’sMore RDFS and OWL Inferencing Jena Rules Engine And any combination
  • 7.
  • 8.
    Demonstration (Where ItAll Goes Wrong)
  • 9.
    The Secret SauceARQ SPARQL query engine The Jena Assembler API
  • 10.
    Jena Assembler APIDeclaratively describe how to build a Jena Model URIs, Databases Add default content Apply schemas, reasoning
  • 11.
    :periodicTable a ja:MemoryModel; ja:content [ ja:externalContent <http://www.daml.org/2003/01/periodictable/PeriodicTable.owl> ] ; rdfs:label &quot;Periodic Table&quot; . Config Example
  • 12.
    :nlm ja:modelName &quot;nlm-data&quot;; ja:connection :nlm-connection ; rdfs:label &quot;NLM Data&quot; . :nlm-connection ja:dbURL <jdbc:mysql://127.0.0.1:3306/facet> ; ja:dbClass &quot;com.mysql.jdbc.Driver&quot; ; ja:dbType &quot;MySQL&quot; ; ja:dbUser &quot;facet&quot; ; ja:dbPassword “*********&quot; Config Example (2)
  • 13.
    <http://dbpedia.org/sparql> a sources:Endpoint; sources:defaultGraph &quot;http://dbpedia.org&quot; ; rdfs:label &quot;DBpedia.org&quot;. <http://www.rdfabout.com/sparql> a sources:Endpoint ; rdfs:label &quot;GovTrack.us&quot;. Config Example (3)
  • 14.
    Where It AllGoes etc\config.n3 Describe (and label) models Prefix Mappings
  • 15.
    Prefix Mappings Quicklyadd PREFIX statement to query Pre configured vocabularies Add your own…
  • 16.
    Prefix Mappings :foafa ja:PrefixMapping ; rdfs:label &quot;FOAF&quot; ; ja:prefix &quot;foaf&quot; ; ja:namespace &quot;http://xmlns.com/foaf/0.1/&quot; .
  • 17.
  • 18.
    … And YetMore ARQ Function & Property Library ARQ Extensions (e.g. COUNT, GROUP BY)
  • 19.
    Future Plans Documentation!SPARQL Endpoint Access Control Model Caching Syntax Highlighting More Eye Candy Move to Google Code (Your Feature Here)
  • 20.
    Questions? Twinkle HomepageAnnotated Screenshots http://www.slideshare.net/ldodds/twinkle-a-sparql-query-tool/