Difference between revisions of "Vocabularies/TIO"

From GoodRelations Wiki
Jump to: navigation, search
(RDFa)
(Concert Ticket)
Line 51: Line 51:
  
 
=== Concert Ticket ===
 
=== Concert Ticket ===
 +
'''Scenario:''' An offer for tickets for the Bryan Adams concert at the Verizon Wireless Ampitheatre, at $ 19.99 per ticket.
 +
 +
 
==== Turtle ====
 
==== Turtle ====
 
<sparql>
 
<sparql>
Line 71: Line 74:
 
           gr:hasCurrency "USD"@en ;
 
           gr:hasCurrency "USD"@en ;
 
           gr:hasCurrencyValue "19.99"^^xsd:float ;
 
           gr:hasCurrencyValue "19.99"^^xsd:float ;
           gr:validThrough "2010-11-11T23:59:59"^^xsd:dateTime ] .
+
           gr:validThrough "2010-11-11T23:59:59"^^xsd:dateTime ] .
 
</sparql>
 
</sparql>
  
Line 99: Line 102:
 
         <div about="#ticket1" typeof="tio:TicketPlaceholder">
 
         <div about="#ticket1" typeof="tio:TicketPlaceholder">
 
             Event link:
 
             Event link:
             <a rel="tio:accessTo"  
+
             <a rel="tio:accessTo"
 
               href="http://data.linkedevents.org/event/3018e1eb-b1dc-4b62-8cb2-f1457c7a31cf">
 
               href="http://data.linkedevents.org/event/3018e1eb-b1dc-4b62-8cb2-f1457c7a31cf">
 
                 Bryan Adams at the Verizon Wireless Amphitheatre</a>
 
                 Bryan Adams at the Verizon Wireless Amphitheatre</a>
             <div property="rdfs:label"  
+
             <div property="rdfs:label"
 
               content="Ticket for Bryan Adams at the Verizon Wireless Amphitheatre"></div>
 
               content="Ticket for Bryan Adams at the Verizon Wireless Amphitheatre"></div>
 
         </div>
 
         </div>

Revision as of 14:40, 22 May 2012

The Tickets Ontology Extension for GoodRelations

GoodRelations Domain Extension
Name The Tickets Ontology (TIO)
Description This extension module for GoodRelations provides classes and properties for describing tickets for admission, events, and transportation services.
Status stable
Level advanced
Tags goodrelations, airfare, transportation, train tickets, events, concerts, museums
URL http://purl.org/tio/ns
Namespace http://purl.org/tio/ns#
Prefix tio:

Overview

The Tickets Ontology is a Web vocabulary for describing tickets for concerts, locations like museums, or any kind of transportation for e-commerce. The vocabulary is designed to be used in combination with GoodRelations, a standard vocabulary for the commercial aspects of tickets and other goods or services. GoodRelations is a language (also known as "schema", "data dictionary", or "ontology") for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

Resources

Examples

For more examples, see

Preliminaries: Prefix Declaration and Company Data

Prefix Declarations

<sparql>

  1. Prefix declarations

@prefix rdf:        <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs:       <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl:        <http://www.w3.org/2002/07/owl#> . @prefix xsd:        <http://www.w3.org/2001/XMLSchema#> . @prefix dc:         <http://purl.org/dc/elements/1.1/> . @prefix dcterms:    <http://purl.org/dc/terms/> . @prefix gr:         <http://purl.org/goodrelations/v1#> . @prefix tio:        <http://purl.org/tio/ns#> . @prefix foo:        <http://www.heppnetz.de/ontologies/tio/examples.rdf#> . </sparql>

Company Data

<sparql> foo:HeppTickets a gr:BusinessEntity ;     gr:legalName "Hepp Tickets, a fictious division of Hepp Research Gmbh"@en .     # You should add address details and geo-position data using

   # external vocabularies, e.g. schema.org or vcard

</sparql>

Concert Ticket

Scenario: An offer for tickets for the Bryan Adams concert at the Verizon Wireless Ampitheatre, at $ 19.99 per ticket.


Turtle

<sparql>

  1. We reuse this event: http://data.linkedevents.org/event/3018e1eb-b1dc-4b62-8cb2-f1457c7a31cf
  2. Bryan Adams at the Verizon Wireless Amphitheatre

foo:ticket1 a tio:TicketPlaceholder ;

   rdfs:label "Ticket for Bryan Adams at the Verizon Wireless Amphitheatre"@en ;
   tio:accessTo <http://data.linkedevents.org/event/3018e1eb-b1dc-4b62-8cb2-f1457c7a31cf> .

foo:HeppTickets gr:offers foo:offer1 .

foo:offer1 a gr:Offering ;

   gr:name "Ticket for Bryan Adams at the Verizon Wireless Amphitheatre"@en ;
   gr:description "Don't miss this: Bryan Adams at the Verizon Wireless Amphitheatre!"@en ;
   gr:includes foo:ticket1 ;
   gr:hasBusinessFunction gr:Sell ;
   gr:hasPriceSpecification
        [ a gr:UnitPriceSpecification ;
          gr:hasCurrency "USD"@en ;
          gr:hasCurrencyValue "19.99"^^xsd:float ;
          gr:validThrough "2010-11-11T23:59:59"^^xsd:dateTime ] .

</sparql>

RDFa

<xml>

Ticket for Bryan Adams at the Verizon Wireless Amphitheatre
Don't miss this: Bryan Adams at the Verizon Wireless Amphitheatre!
   Price:
           $ 
           19.99
Offer ends: Nov 11, 2010
           Event link:
           <a rel="tio:accessTo"
             href="http://data.linkedevents.org/event/3018e1eb-b1dc-4b62-8cb2-f1457c7a31cf">
               Bryan Adams at the Verizon Wireless Amphitheatre</a>

</xml>

Museum Admission Fare

Turtle

<sparql> tbd </sparql>

RDFa

<xml> tbd </xml>

Airfare

Turtle

<sparql> tbd </sparql>

RDFa

<xml> tbd </xml>