Skip to content

Tool for writing SPARQL queries over RDF datasets.

License

Notifications You must be signed in to change notification settings

aelroby/Sapphire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sapphire (Querying RDF Data Made Simple)

RDF data in the linked open data (LOD) cloud is very valuable for many different applications. In order to unlock the full value of this data, users should be able to issue complex queries on the RDF datasets in the LOD cloud. SPARQL can express such complex queries, but constructing SPARQL queries can be a challenge to users since it requires knowing the structure and vocabulary of the datasets being queried. In this paper, we introduce Sapphire, a tool that helps users write syntactically and semantically correct SPARQL queries without prior knowledge of the queried datasets. Sapphire interactively helps the user while typing the query by providing auto-complete suggestions based on the queried data. After a query is issued, Sapphire provides suggestions on ways to change the query to better match the needs of the user. Sapphire has been evaluated based on a user study and shown to be superior to other approaches for querying RDF data.

Installation

Requirements

  • Install a web application server, such as Tomcat.

Steps

  1. Create a WAR file for Sapphire (Sapphire.war) a. Open the code in Eclipse (we use Eclipse Java EE IDE for Web Developers. Neon.1a Release (4.6.1)) b. Right-click on the project name, Sapphire, and select export. c. Choose the option to export as WAR and in the dialog pick your tomcat version for optimization. d. The generated war file is large because it includes all the required libs. You can find them all the lib directory.
  2. Copy Sapphire.war to /var/lib/tomcat/webapps/
  3. Restart the tomcat server: sudo service tomcat7 stop
  4. Add any required data files to an accessible directory Metadata/. The files to be saved under this directory are mentioned next.
  5. Edit the parameters file in /var/lib/tomcat7/webapps/Sapphire/WEB-INF/; the contents of this file are:
TDBDirectory=Metadata/DB
Labels=Metadata/refinedLabels.dat
Predicates=Metadata/refinedPredicates.dat
FrequentLiterals=Metadata/FrequentLiterals.dat
  1. Change the log directory in /var/lib/tomcat7/webapps/Sapphire/WEB-INF/classes/logging.properties:
    • java.util.logging.FileHandler.pattern= /Sapphire_log_directory/
  2. Restart the tomcat server: sudo service tomcat7 stop

About

Tool for writing SPARQL queries over RDF datasets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published