background preloader

Graph

Facebook Twitter

Charts

Networkx. SPARQL, RDF Datasets, FROM, FROM NAMED, and GRAPH - TechnicaLee Speaking. Bob DuCharme suggested that I share this explanation about the role of FROM, FROM NAMED, and GRAPH within a SPARQL query.

SPARQL, RDF Datasets, FROM, FROM NAMED, and GRAPH - TechnicaLee Speaking

So here it is… A SPARQL query goes against an RDF dataset. An RDF dataset has two parts: Thinkmap Visual Thesaurus - An online thesaurus and dictionary of over 145,000 words that you explore using an interactive map. OWL Example with RDF Graph - Introduction to ontologies and semantic web - tutorial. Let us illustrate the use of OWL vocabulary on an example ontology (inspired by OWL Pizzas): "Pizza has PizzaBase as its base; Pizza is disjoint with PizzaBase; NonVegetarianPizza is exactly Pizza that is not VegetarianPizza; isIngredientOf is a transitive property; isIngredientOf is inverse of hasIngredient".

OWL Example with RDF Graph - Introduction to ontologies and semantic web - tutorial

The example expressed in the description logic syntax follows: The same example expressed using OWL Abstract Syntax formulates the same information using LISP-like notation, and in addition uses URI for identification of all classes and properties: Namespace(p = < Ontology( < Class(p:Pizza partial restriction(p:hasBase someValuesFrom(p:PizzaBase))) DisjointClasses(p:Pizza p:PizzaBase) Class(p:NonVegetarianPizza complete intersectionOf(p:Pizza complementOf(p:VegetarianPizza))) ObjectProperty(p:isIngredientOf Transitive inverseOf(p:hasIngredient)) ) When embedding the example OWL ontology to RDF, every statement must be converted to triples - see the figure below.

@prefix : < .