# This ontology.
@prefix sparql:   <http://ontologi.es/sparql#> .

# Related
@prefix event:    <http://purl.org/NET/c4dm/event.owl#> .
@prefix sp:       <http://spinrdf.org/sp#> .
@prefix rs:       <http://www.w3.org/2001/sw/DataAccess/tests/result-set#> .

# Stock imports.
@prefix cc:       <http://creativecommons.org/ns#> .
@prefix dc:       <http://purl.org/dc/terms/> .
@prefix dcmitype: <http://purl.org/dc/dcmitype/> .
@prefix foaf:     <http://xmlns.com/foaf/0.1/> .
@prefix link:     <http://www.w3.org/2006/link#> .
@prefix owl:      <http://www.w3.org/2002/07/owl#> .
@prefix rdf:      <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:     <http://www.w3.org/2000/01/rdf-schema#> .
@prefix skos:     <http://www.w3.org/2004/02/skos/core#> .
@prefix status:   <http://ontologi.es/status#> .
@prefix vann:     <http://purl.org/vocab/vann/> .
@prefix vs:       <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix xhv:      <http://www.w3.org/1999/xhtml/vocab#> .
@prefix xsd:      <http://www.w3.org/2001/XMLSchema#> .

## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## 

sparql:
	a owl:Ontology ;
	rdfs:label "SPARQL Endpoint Discovery Terms" ;
	rdfs:comment "Various terms for relating SPARQL endpoints, SPARQL queries, SPARQL result sets and documents." ;
	dc:created "2009-08-15"^^xsd:date ;
	dc:issued "2009-08-15"^^xsd:date ;
	dc:modified "2009-10-30"^^xsd:date ;
	dc:creator <http://tobyinkster.co.uk/#i> ;
	vann:preferredNamespacePrefix "sparql" ;
	vann:preferredNamespaceUri "http://ontologi.es/sparql#" .

<http://ontologi.es/sparql>
	status:status status:ReviewCopy ;
	status:change
		[
			status:previous_status status:Sketch ;
			status:new_status status:ReviewCopy ;
			event:agent <http://tobyinkster.co.uk/#i> ;
			event:time [ tl:at "2009-08-22"^^xsd:date ]
		] .

sparql:EndpointDocument
	a owl:Class ;
	rdfs:label "Endpoint Document" ;
	rdfs:comment "A document which accepts SPARQL queries in an HTTP GET parameter called 'query'." ;
	rdfs:subClassOf foaf:Document .

sparql:RootDocument
	a owl:Class ;
	rdfs:label "Root Document" ;
	rdfs:comment "The document which has URI path '/' a server." ;
	rdfs:subClassOf foaf:Document .

sparql:endpoint
	a owl:ObjectProperty ;
	rdfs:label "endpoint" ;
	rdfs:comment "A link from a Document to a related endpoint." ;
	rdfs:subPropertyOf rdfs:seeAlso ;
	rdfs:domain foaf:Document ;
	rdfs:range sparql:EndpointDocument .

sparql:fingerpoint
	a owl:ObjectProperty ;
	rdfs:label "fingerpoint" ;
	rdfs:comment "A link from a Root Document to an Endpoint Document capable of returning information about people having e-mail addresses at the associated domain." ;
	rdfs:subPropertyOf sparql:endpoint ;
	rdfs:domain sparql:RootDocument .

## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## 

sparql:QueryExecution ;
	a owl:Class ;
	rdfs:subClassOf event:Event ;
	rdfs:label "Query Execution" ;
	rdfs:comment "An event representing the execution of a query." .

sparql:query ;
	a owl:ObjectProperty ;
	rdfs:subPropertyOf event:factor ;
	rdfs:label "query" ;
	rdfs:domain sparql:QueryExecution ;
	rdfs:range sp:Query .

sparql:results ;
	a owl:ObjectProperty ;
	rdfs:subPropertyOf event:product ;
	rdfs:label "results" ;
	rdfs:domain sparql:QueryExecution ;
	rdfs:range rs:ResultSet .

sparql:handler ;
	a owl:ObjectProperty ;
	rdfs:subPropertyOf event:factor ;
	rdfs:label "handler" ;
	rdfs:domain sparql:QueryExecution ;
	rdfs:range sparql:EndpointDocument .

## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## 
