@prefix schema:  <http://schema.org/> .
@prefix xhv:    <http://www.w3.org/1999/xhtml/vocab#> .
@prefix skos:   <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix cvocab: <http://open-services.net/ns/core#> .
@prefix cc:     <http://creativecommons.org/ns#> .
@prefix foaf:   <http://xmlns.com/foaf/0.1/> .
@prefix gr:     <http://purl.org/goodrelations/v1#> .
@prefix opl:    <http://www.openlinksw.com/schema/attribution#> .
@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 sioc:   <http://rdfs.org/sioc/ns#> .
@prefix wdrs:   <http://www.w3.org/2007/05/powder-s#> .
@prefix xsd:    <http://www.w3.org/2001/XMLSchema#> .
@prefix yql:    <http://www.openlinksw.com/schemas/yql#> .

<http://www.openlinksw.com/schemas/yql#>
  a owl:Ontology ;
  schema:name "OpenLink YQL Ontology" ;
  schema:comment """Ontology that defines entity and relation types used to describe YQL.
  Examples include queries, query results sets etc."""@en ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:dateCreated "2013-05-18T13:00:00-05:00"^^xsd:dateTime ;
  schema:dateModified "2015-04-22T13:38:00-05:00"^^xsd:dateTime ;
  schema:creator <http://www.openlinksw.com/#this> ;
  wdrs:describedby <http://www.openlinksw.com/schemas/yql> ;
  owl:versionInfo "1.0.0"^^xsd:string ;
  owl:imports <http://www.w3.org/1999/02/22-rdf-syntax-ns#> , <http://purl.org/dc/terms/> ;
  <http://open.vocab.org/terms/defines>
    yql:QueryResultSet ,
    yql:QueryResult ,
    yql:originalQuery ;
  schema:about
    yql:QueryResultSet ,
    yql:QueryResult ,
    yql:originalQuery .

<http://www.openlinksw.com/DAV/data/turtle/cartridge_ontologies/yql.ttl>
  a foaf:Document ;
  schema:name "OpenLink YQL Ontology Description Document (Turtle)" ;
  cc:License <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a turtle document that uses Linked Data oriented content to describe an OpenLink ontology for YQL"""@en ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/yql#> ;
  xhv:canonical <http://www.openlinksw.com/schemas/yql> ;
  xhv:describes <http://www.openlinksw.com/schemas/yql#> ;
  schema:about <http://www.openlinksw.com/schemas/yql#> ;
  dcterms:subject <http://www.openlinksw.com/schemas/yql#> .

<http://www.openlinksw.com/data/turtle/cartridge_ontologies/yql.ttl>
  a foaf:Document ;
  schema:name "OpenLink YQL Ontology Description Document (Turtle)" ;
  cc:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a turtle document that uses Linked Data oriented content to describe an OpenLink ontology for YQL"""@en ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/yql#> ;
  xhv:canonical <http://www.openlinksw.com/schemas/yql> ;
  xhv:describes <http://www.openlinksw.com/schemas/yql#> ;
  schema:about <http://www.openlinksw.com/schemas/yql#> ;
  dcterms:subject <http://www.openlinksw.com/schemas/yql#> .

<http://www.openlinksw.com/schemas/yql>
  a foaf:Document ;
  schema:name """OpenLink YQL Ontology Description Document"""^^xsd:string ;
  cc:license <http://creativecommons.org/licenses/by-sa/3.0/> ;
  schema:creator <http://www.openlinksw.com/#this> ;
  schema:comment """This is a document that uses Linked Data oriented content to describe OpenLink YQL Ontology."""@en ;
  dcterms:subject <http://www.openlinksw.com/schemas/yql#> ;
  foaf:primaryTopic <http://www.openlinksw.com/schemas/yql#> ;
  foaf:topic
    yql:QueryResultSet ,
    yql:QueryResult ,
    yql:originalQuery .

#
# Classes
#

yql:QueryResultSet
  a owl:Class ;
  rdfs:isDefinedBy <http://www.openlinksw.com/schemas/yql#> ;
  rdfs:label "YQL Query Resultset" ;
  rdfs:comment """A Yahoo Query Language resultset"""@en  .

yql:QueryResult
  a owl:Class ;
  rdfs:isDefinedBy <http://www.openlinksw.com/schemas/yql#> ;
  rdfs:label "YQL Query Result" ;
  rdfs:comment """A Yahoo Query Language result"""@en  .

#
# properties
#
yql:originalQuery
  a owl:DatatypeProperty , rdf:Property ;
  rdfs:isDefinedBy <http://www.openlinksw.com/schemas/yql#> ;
  rdfs:label "originalQuery" ;
  skos:altLabel "originating query" ;
  rdfs:comment """YQL query text"""@en  ;
  rdfs:domain xsd:string .

