# This is a small ontology providing a handful of predicates for describing
# sections of documents. For the most part, Dublin Core will provide you with
# 99% of the terms you're likely to need. In particular, it defines the
# following classes which are likely to be of use:
#
#     http://purl.org/dc/dcmitype/Text
#     http://purl.org/dc/dcmitype/Dataset
#     http://purl.org/dc/dcmitype/Image
#
# Both the document itself and any contained sections can be given an rdf:type
# of dcmitype:Text. Figures can be given an rdf:type of dcmitype:Image and
# lists and tables dcmitype:Dataset. 
#
# The following predicates are also likely to come in handy:
#
#     http://purl.org/dc/terms/title
#     http://purl.org/dc/terms/hasPart
#     http://purl.org/dc/terms/isPartOf
#     http://purl.org/dc/terms/tableOfContents
#
# The dc:hasPart and dc:isPartOf predicates can be used to link from a document
# or section to its subsections. dc:tableOfContents can be used as a special
# case of dc:hasPart to indicate that a particular section should be treated as
# a table of contents. dc:title of course indicates the title of the section.
#
# This little ontology provides a few additional terms for describing sections,
# especially useful when the document being described is an XHTML or HTML
# document. Take the following section (in HTML 5):
#
#     <section id="sect1">
#       <h2 id="hdg1">My Section</h2>
#       <p>Blah, blah.</p>
#     </section>
#
# This might be described in Turtle RDF (prefixes as below) like:
#
#     <#sect1> a dcmitype:Text ;
#         s:heading <#hdg1> ;
#         dc:title "My Section" ;
#         s:rootTag xhtml:section;
#         s:headingTag xhtml:h2 .

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

# This ontology.
@prefix s:        <http://buzzword.org.uk/rdf/sections#> .

# Related ontologies.
@prefix xhtml:    <http://buzzword.org.uk/rdf/xhtml-elements#> .

# 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 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#> .

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

s:
	a owl:Ontology ;
	dc:title "Section ontology"@en ;
	rdfs:label "An ontology defining supplementary terms concerning articles which have been divided into sections."@en ;
	dc:issued "2008-06-27" ;
	dc:modified "2008-06-27"^^xsd:date ,
		"2008-08-21"^^xsd:date ,
		"2008-11-04"^^xsd:date ,
		"2008-11-26"^^xsd:date ,
		"2009-01-25"^^xsd:date ;
	dc:creator "Toby Inkster" ;
	foaf:maker <http://tobyinkster.co.uk/#i> .

s:rootTag
	a owl:ObjectProperty ;
	rdfs:label "root element tag type"@en ;
	rdfs:comment "Where a section is part of an XML document, this predicate indicates the tag name of the root element of the section."@en ;
	link:obsoletes s:hasTagName .

s:headingTag
	a owl:ObjectProperty ;
	rdfs:label "heading tag type"@en ;
	rdfs:comment "Where a section is part of an XML document, if it has a heading marked up using an XML element, this predicate indicates the tag name for that heading element."@en ;
	link:obsoletes s:hasHeadingTagName .

s:heading
	a owl:ObjectProperty ;
	rdfs:label "heading"@en ;
	rdfs:comment "A resource; generally a pointer to a fragment identifier within a document. Note that this is not the predicate to use for the literal title of a section - use Dublin Core 'title' for that."@en .

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