Browse Prior Art Database

Generating SPARQL From RDFS / OWL Ontology Definitions, Using An Automatically Generated Javascript Object Model

IP.com Disclosure Number: IPCOM000235040D
Publication Date: 2014-Feb-25
Document File: 4 page(s) / 87K

Publishing Venue

The IP.com Prior Art Database

Abstract

Disclosed is a novel system that automatically generates a JavaScript* object model from Resource Description Framework schema (RDFS)/Web Ontology Language (OWL) ontologies that supports the construction of validated queries, without having to understand the ontology or SPARQL Protocol and Resource Description Framework Query Language (SPARQL). The core idea of the solution is to generate SPARQL snippets in order to create valid SPARQL queries using JavaScript for semantic web applications.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 41% of the total text.

Page 01 of 4

Generating SPARQL From RDFS /

Generated Javascript Object Model

Semantic Web Technologies is a World Wide Web Consortium (W3C) standard allowing disparate data to be shared and reused across applications which potentially reveals new relationships among the data. It enables the creation of data stores, build vocabularies, and rules for handling the data using technologies such as Resource Description Framework (RDF), Web Ontology Language (OWL), and SPARQL Protocol and Resource Description Framework Query Language (SPARQL), which is the query

language for RDF and can be used to express queries across diverse data sources.

Generating valid and appropriate SPARQL Query constructs is complex and error prone. For a user, this requires learning the SPARQL language and a full understanding of the ontology defined within the data source that requires access. When connecting to a new data source, the time and effort required to gain an understanding a new ontology is often significant and can become a barrier to effective use of the information.

The system disclosed herein automatically generates a JavaScript* object model from RDF schema (RDFS)/OWL ontologies. The generated model supports construction of validated queries without having to understand the ontology or SPARQL language.

Each RDFS/OWL class, property, and relation is represented as a JavaScript class. JavaScript methods exist that allow valid construction of a query based upon the rules in the ontology. As the user constructs the query, the system automatically generates valid SPARQL snippets within the JavaScript objects. These snippets are combined to form a syntactically valid SPARQL query.

Embodiments of the present invention include generating SPARQL snippets in order to create valid SPARQL queries using JavaScript for semantic web applications. This prevents users from composing invalid queries and increases the number of end users, since no knowledge of the ontology or SPARQL language is required.

The data sources are specified by Uniform Resource Identifiers (URIs). These URIs are typically assigned to PREFIX variables due to frequent use in the query. Examples are:
PREFIX mo:

(music ontology)

PREFIX movie:

(imdb)

As the UI is rendering, the system generate snippets of the query. (Figure 1)

, // OWL Ontology Definitions OWL Ontology Definitions ,

Using An Automatically

Using An Automatically

1


Page 02 of 4

Figure 1: System generating the snippet of the query

var i2Prefix = "prefix i2:

";
var rdfsPrefix = "prefix rdfs:

"; (W3C standard)

var query = i2Prefix + " " + rdfsPrefix + " SELECT ?"+ entityType.toLowerCase()+ id +" WHERE {?"+ entityType.toLowerCase() + id +" a i2:"+ entityType +" . }";
// SELECT ?person1 WHERE { ?person1 a :Person . }

With SPARQL, the text after the question mark is a variable name. Each object in the user interface (UI) is assigned an unique identifier (ID). The system appends this ID to the variable name to prevent conflicts.

Once an Entity is d...