@prefix dc:    <http://purl.org/dc/elements/1.1/> .
@prefix foaf:  <http://xmlns.com/foaf/0.1/> .
@prefix vann:  <http://purl.org/vocab/vann/> .
@prefix geop:  <http://aims.fao.org/aos/geopolitical.owl#> .
@prefix org:   <http://www.w3.org/ns/org#> .
@prefix rov:   <http://www.w3.org/ns/regorg#> .
@prefix schema: <http://schema.org/> .
@prefix voaf:  <http://purl.org/vocommons/voaf#> .
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
@prefix v:     <http://www.w3.org/2006/vcard/ns#> .
@prefix dcat:  <http://www.w3.org/ns/dcat#> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix dct:   <http://purl.org/dc/terms/> .
@prefix xbrll: <https://w3id.org/vocab/xbrll#> .
@prefix xsd:   <http://www.w3.org/2001/XMLSchema#> .
@prefix owl:   <http://www.w3.org/2002/07/owl#> .
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix skos:  <http://www.w3.org/2004/02/skos/core#> .

xbrll:context  a          rdf:Property , owl:ObjectProperty ;
        rdfs:comment      "Context property from a data point"@en ;
        rdfs:domain       xbrll:DataPoint ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Context property"@en ;
        rdfs:range        xbrll:Context .

xbrll:dataPoint  a        rdf:Property , owl:ObjectProperty ;
        rdfs:comment      "Data point property from a financial report"@en ;
        rdfs:domain       xbrll:FinancialReport ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Data point property"@en ;
        rdfs:range        xbrll:DataPoint .

<https://w3id.org/vocab/xbrll>
        a                              owl:Ontology , voaf:Vocabulary ;
        rdfs:label                     "El vocabulario para informe financiero"@es , "A leightweight XBRL vocabulary"@en ;
        dct:creator                    [ schema:affiliation  [ foaf:homepage  <http://www.cdp.net> ;
                                                               foaf:name      "CDP"
                                                             ] ;
                                         foaf:name           "Maria Moreno"
                                       ] ;
        dct:creator                    [ schema:affiliation  [ foaf:homepage  <http://www.mondeca.com> ;
                                                               foaf:name      "Mondeca"
                                                             ] ;
                                         foaf:name           "Ghislain Atemezing"
                                       ] ;
        dct:issued                     "2016-05-18"^^xsd:date ;
        dct:modified                   "2016-06-01"^^xsd:date , "2016-06-29"^^xsd:date , "2016-05-20"^^xsd:date ;
        vann:preferredNamespacePrefix  "xbrll" ;
        owl:versionInfo                "0.1" .

xbrll:Dimension  a        owl:Class , rdfs:Class ;
        rdfs:comment      "The dimension defining whether the dimensions in the axis are explicit member or implicit ones"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Dimension"@en .

xbrll:startDate  a        owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "Starting date of a period"@en ;
        rdfs:domain       xbrll:Period ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Start date"@en ;
        rdfs:range        xsd:date .

schema:Report  a  owl:Class .

xbrll:Context  a          owl:Class , rdfs:Class ;
        rdfs:comment      "the context of a fact in a financial report"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Context"@en .

xbrll:reportYear  a       owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "year of the report"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Report year"@en ;
        rdfs:range        xsd:string .

xbrll:FinancialEntity
        a                 owl:Class , rdfs:Class ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Financial entity"@en ;
        rdfs:subClassOf   rov:RegisteredOrganization .

xbrll:isInstant  a        owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "boolean for the instant moment"@en ;
        rdfs:domain       xbrll:Period ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Is instant"@en ;
        rdfs:range        xsd:boolean .

xbrll:Period  a           owl:Class , rdfs:Class ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Period"@en .

geop:nameCurrencyEN  a  owl:DatatypeProperty ;
        rdfs:label  "name currency EN"@en ;
        rdfs:range  xsd:string .

xbrll:period  a           rdf:Property , owl:ObjectProperty ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Period"@en ;
        rdfs:range        xbrll:Period .

xbrll:hasDimension  a     owl:DatatypeProperty , rdf:Property ;
        rdfs:domain       xbrll:Dimension ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Has dimension"@en ;
        rdfs:range        [ a          owl:DataRange ;
                            owl:oneOf  ( "Explicit Member" "Typed Member" )
                          ] .

xbrll:fiscalYear  a       owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "End of fiscal year"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Fiscal year"@en ;
        rdfs:range        xsd:date .

xbrll:contactPerson  a    owl:ObjectProperty , rdf:Property ;
        rdfs:comment      "The person of contact in the metadata info of a company"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Contact person"@en ;
        rdfs:range        foaf:Agent .

xbrll:DataPoint  a        owl:Class , rdfs:Class ;
        rdfs:comment      "this define a fact in the report. A data point should have at least one context"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "data point"@en ;
        rdfs:subClassOf   [ a                   owl:Restriction ;
                            owl:onProperty      xbrll:hasDimension ;
                            owl:someValuesFrom  xbrll:Dimension
                          ] ;
        rdfs:subClassOf   [ a                   owl:Restriction ;
                            owl:minCardinality  "1"^^xsd:nonNegativeInteger ;
                            owl:onClass         xbrll:Context ;
                            owl:onProperty      xbrll:context
                          ] .

xbrll:isForever  a        owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "Boolean telling the period is forever or not"@en ;
        rdfs:domain       xbrll:Period ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Is forever"@en ;
        rdfs:range        xsd:boolean .

xbrll:endDate  a          owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "End date of a period"@en ;
        rdfs:domain       xbrll:Period ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "End date"@en ;
        rdfs:range        xsd:date .

xbrll:FinancialReport
        a                 owl:Class , rdfs:Class ;
        rdfs:comment      "A financial report may content many data points that are facts"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "informe financiero"@es , "Financial report"@en ;
        rdfs:subClassOf   schema:Report ;
        rdfs:subClassOf   [ a                   owl:Restriction ;
                            owl:onProperty      xbrll:dataPoint ;
                            owl:someValuesFrom  xbrll:DataPoint
                          ] .

xbrll:decimals  a         owl:DatatypeProperty , rdf:Property ;
        rdfs:comment      "Number of decimals used for a currency"@en ;
        rdfs:isDefinedBy  <https://w3id.org/vocab/xbrll> ;
        rdfs:label        "Decimals"@en ;
        rdfs:range        xsd:integer .
