By Pim Keizer A simple example of some generic sparql queries for use in a search engine. Search phrase: “Adidas” Instance match Select all instances with label "Adidas". SELECT * WHERE { ?resource rdfs:label "Adidas" . } Find synonyms Select all classes that are of the same type. SELECT ?synonyms WHERE { ?resource rdfs:label "Adidas" . ?resource rdf:type ?type . ?synonyms rdf:type ?type . } Find other instances [...]
Ontology
RDF is short for Resource Description Framework. RDF is the language for describing resources and contents in the semantic web. In the semantic web RDF is used to describe resources on the web. Resources are addressed by a unique URI. A URI looks like a normal Internet URL. Look at the following fragment of a RDF file: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns="http://example.org/pets#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base="http://example.org/pets"> <owl:Class rdf:ID="Goldfish"> [...]
Describing things in a way that computer applications can understand it. The semantic web describes relations between concepts. For example: A isPartOf B B hasType C C isMemberOf D Also properties of concepts can be described: A hasAge X B hasSize X C has Length X Where in this case X could be of type Integer.
"In computer science and information science, an ontology is a formal representation of a set of concepts within a domain and the relationships between those concepts. It is used to reason about the properties of that domain, and may be used to define the domain." (http://en.wikipedia.org/wiki/Ontology_%28information_science%29)
