_QB.py 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. from rdflib.namespace import DefinedNamespace, Namespace
  2. from rdflib.term import URIRef
  3. class QB(DefinedNamespace):
  4. """
  5. Vocabulary for multi-dimensional (e.g. statistical) data publishing
  6. This vocabulary allows multi-dimensional data, such as statistics, to be published in RDF. It is based on the
  7. core information model from SDMX (and thus also DDI).
  8. Generated from: http://purl.org/linked-data/cube#
  9. Date: 2020-05-26 14:20:05.485176
  10. """
  11. _fail = True
  12. # http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
  13. attribute: URIRef # An alternative to qb:componentProperty which makes explicit that the component is a attribute
  14. codeList: URIRef # gives the code list associated with a CodedProperty
  15. component: URIRef # indicates a component specification which is included in the structure of the dataset
  16. componentAttachment: URIRef # Indicates the level at which the component property should be attached, this might an qb:DataSet, qb:Slice or qb:Observation, or a qb:MeasureProperty.
  17. componentProperty: URIRef # indicates a ComponentProperty (i.e. attribute/dimension) expected on a DataSet, or a dimension fixed in a SliceKey
  18. componentRequired: URIRef # Indicates whether a component property is required (true) or optional (false) in the context of a DSD. Only applicable to components correspond to an attribute. Defaults to false (optional).
  19. concept: URIRef # gives the concept which is being measured or indicated by a ComponentProperty
  20. dataSet: URIRef # indicates the data set of which this observation is a part
  21. dimension: URIRef # An alternative to qb:componentProperty which makes explicit that the component is a dimension
  22. hierarchyRoot: URIRef # Specifies a root of the hierarchy. A hierarchy may have multiple roots but must have at least one.
  23. measure: URIRef # An alternative to qb:componentProperty which makes explicit that the component is a measure
  24. measureDimension: URIRef # An alternative to qb:componentProperty which makes explicit that the component is a measure dimension
  25. measureType: URIRef # Generic measure dimension, the value of this dimension indicates which measure (from the set of measures in the DSD) is being given by the obsValue (or other primary measure)
  26. observation: (
  27. URIRef # indicates a observation contained within this slice of the data set
  28. )
  29. observationGroup: URIRef # Indicates a group of observations. The domain of this property is left open so that a group may be attached to different resources and need not be restricted to a single DataSet
  30. order: URIRef # indicates a priority order for the components of sets with this structure, used to guide presentations - lower order numbers come before higher numbers, un-numbered components come last
  31. parentChildProperty: URIRef # Specifies a property which relates a parent concept in the hierarchy to a child concept.
  32. slice: URIRef # Indicates a subset of a DataSet defined by fixing a subset of the dimensional values
  33. sliceKey: URIRef # indicates a slice key which is used for slices in this dataset
  34. sliceStructure: URIRef # indicates the sub-key corresponding to this slice
  35. structure: URIRef # indicates the structure to which this data set conforms
  36. # http://www.w3.org/2000/01/rdf-schema#Class
  37. Attachable: URIRef # Abstract superclass for everything that can have attributes and dimensions
  38. AttributeProperty: URIRef # The class of components which represent attributes of observations in the cube, e.g. unit of measurement
  39. CodedProperty: URIRef # Superclass of all coded ComponentProperties
  40. ComponentProperty: URIRef # Abstract super-property of all properties representing dimensions, attributes or measures
  41. ComponentSet: URIRef # Abstract class of things which reference one or more ComponentProperties
  42. ComponentSpecification: URIRef # Used to define properties of a component (attribute, dimension etc) which are specific to its usage in a DSD.
  43. DataSet: URIRef # Represents a collection of observations, possibly organized into various slices, conforming to some common dimensional structure.
  44. DataStructureDefinition: URIRef # Defines the structure of a DataSet or slice
  45. DimensionProperty: (
  46. URIRef # The class of components which represent the dimensions of the cube
  47. )
  48. HierarchicalCodeList: URIRef # Represents a generalized hierarchy of concepts which can be used for coding. The hierarchy is defined by one or more roots together with a property which relates concepts in the hierarchy to their child concept . The same concepts may be members of multiple hierarchies provided that different qb:parentChildProperty values are used for each hierarchy.
  49. MeasureProperty: URIRef # The class of components which represent the measured value of the phenomenon being observed
  50. Observation: URIRef # A single observation in the cube, may have one or more associated measured values
  51. ObservationGroup: URIRef # A, possibly arbitrary, group of observations.
  52. Slice: URIRef # Denotes a subset of a DataSet defined by fixing a subset of the dimensional values, component properties on the Slice
  53. SliceKey: URIRef # Denotes a subset of the component properties of a DataSet which are fixed in the corresponding slices
  54. _NS = Namespace("http://purl.org/linked-data/cube#")