@base <http://semantic-mediawiki.org/swivt/1.0> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix swivt: <#> .
@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#> .

<>
    a owl:Ontology ;
    rdfs:comment "This ontology describes the elements used in the export of Semantic MediaWiki. More information can be found at http://semantic-mediawiki.org"@en .

swivt:BuiltinType
    a owl:Class ;
    rdfs:label "Builtin type"@en ;
    rdfs:subClassOf swivt:Type .

swivt:Container
    a owl:Class ;
    rdfs:comment "An intermediate entity that allows to create n-ary values for a specific attribute. An NAry is naught but an intermediate node."@en ;
    rdfs:label "Container"@en .

swivt:ConversionFactor
    a owl:Class .

swivt:CustomType
    a owl:Class ;
    rdfs:subClassOf swivt:Type .

swivt:EmailType
    a swivt:BuiltinType ;
    rdfs:label "Email"@en .

swivt:GeoType
    a swivt:BuiltinType ;
    rdfs:label "Geographic coordinate"@en .

swivt:NAryType
    a owl:Class ;
    rdfs:subClassOf swivt:CustomType .

swivt:NumberType
    a swivt:BuiltinType ;
    rdfs:label "Number"@en .

swivt:PageType
    a swivt:BuiltinType ;
    rdfs:label "Page"@en .

swivt:StringType
    a swivt:BuiltinType ;
    rdfs:label "String"@en .

swivt:Subject
    a owl:Class ;
    rdfs:comment "An individual entitiy that is described on a wiki page. Can be basically anything."@en ;
    rdfs:label "Subject"@en .

swivt:TemperatureType
    a swivt:BuiltinType ;
    rdfs:label "Temperature"@en .

swivt:TextType
    a swivt:BuiltinType ;
    rdfs:label "Text"@en .

swivt:TimeType
    a swivt:BuiltinType ;
    rdfs:label "Time"@en .

swivt:Type
    a owl:Class .

swivt:URIType
    a swivt:BuiltinType ;
    rdfs:label "URI"@en .

swivt:UnitType
    a owl:Class ;
    rdfs:subClassOf swivt:CustomType .

swivt:Wikipage
    a owl:Class ;
    rdfs:comment "A page in a wiki"@en ;
    rdfs:label "Wikipage"@en .

swivt:allowedValue
    a owl:DatatypeProperty ;
    rdfs:comment "A string presentation that may be given as input to a property. Note that this is not the actual property value but a part of the UI description of the wiki."@en .

swivt:baseProperty
    a owl:ObjectProperty ;
    rdfs:comment "The base property of a property is an abstract property that does not specify sufficiently certain values so that the property value can be properly understood. It connects two properties with each other, for example lenght_(meters) has the base property lenght and the modifier meters."@en ;
    rdfs:label "Base property"@en .

swivt:conversionFactor
    a owl:ObjectProperty ;
    rdfs:domain swivt:UnitType ;
    rdfs:range swivt:ConversionFactor .

swivt:creationDate
    a owl:AnnotationProperty ;
    rdfs:comment "Specifies the exact time at which this particular ontology was created. Used for owl:Ontologies only."@en ;
    rdfs:label "Date of creation"@en .

swivt:displayUnit
    a owl:DatatypeProperty .

swivt:factor
    a owl:DatatypeProperty ;
    rdfs:domain swivt:ConversionFactor ;
    rdfs:range xsd:decimal .

swivt:mainUnit
    a owl:DatatypeProperty ;
    rdfs:subPropertyOf swivt:unit .

swivt:modifier
    a owl:DatatypeProperty ;
    rdfs:comment "Connects a property with a string that instantiates the meaning of the abstract base property connected to the property. For example, the triple a length 3 would have no meaning, since it is unclear in what unit 3 has to be understood. Here we introduce a new property lenght_(m) with the base property lenght and the modifier m, so that we know the 3 is measured in m."@en ;
    rdfs:label "Modifier"@en .

swivt:object
    a owl:ObjectProperty .

swivt:object1
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 1 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 1"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object2
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 2 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 2"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object3
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 3 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 3"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object4
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 4 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 4"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object5
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 5 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 5"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object6
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 6 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 6"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object7
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 7 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 7"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object8
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 8 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 8"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:object9
    a owl:ObjectProperty ;
    rdfs:comment "Connects an NAry to parameter object 9 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter object 9"@en ;
    rdfs:subPropertyOf swivt:object .

swivt:page
    a owl:ObjectProperty ;
    rdfs:comment "Connects a swivt:Subject (URI) with the according swivt:Wikipage (URL)."@en ;
    rdfs:domain swivt:Subject ;
    rdfs:label "Page"@en ;
    rdfs:range swivt:Wikipage .

swivt:sourceSite
    a owl:AnnotationProperty ;
    rdfs:comment "Specifies the URL of the (wiki) site that the given ontology relates to. Used for owl:Ontologies only."@en ;
    rdfs:label "Source site"@en .

swivt:type
    a owl:ObjectProperty ;
    rdfs:comment "The wiki-specified type of a property."@en ;
    rdfs:label "Has type"@en .

swivt:unit
    a owl:DatatypeProperty ;
    rdfs:domain swivt:ConversionFactor ;
    rdfs:range xsd:string .

swivt:value
    a owl:DatatypeProperty .

swivt:value1
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 1 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 1"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value2
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 2 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 2"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value3
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 3 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 3"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value4
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 4 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 4"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value5
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 5 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 5"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value6
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 6 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 6"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value7
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 7 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 7"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value8
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 8 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 8"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:value9
    a owl:DatatypeProperty ;
    rdfs:comment "Connects an NAry to parameter value 9 of the NAry."@en ;
    rdfs:domain swivt:Container ;
    rdfs:label "Parameter value 9"@en ;
    rdfs:subPropertyOf swivt:value .

swivt:wikiNamespace
    a owl:DatatypeProperty ;
    rdfs:comment "Connects a swivt:Subject to the numerical namespace that its page in the exporting wiki belongs to."@en ;
    rdfs:domain swivt:Subject ;
    rdfs:label "Wiki namespace"@en ;
    rdfs:range xsd:integer .

swivt:wikiPageModificationDate
    a owl:DatatypeProperty ;
    rdfs:comment "Connects a swivt:Subject to the time point at which the according page in the wiki was last modified."@en ;
    rdfs:domain swivt:Subject ;
    rdfs:label "Modification date"@en ;
    rdfs:range xsd:dateTime .

