Skip to content

Commit

Permalink
refactory
Browse files Browse the repository at this point in the history
  • Loading branch information
Configuration Manager committed Sep 20, 2019
1 parent a7809a4 commit 8cecddf
Show file tree
Hide file tree
Showing 29 changed files with 958 additions and 320 deletions.
5 changes: 2 additions & 3 deletions .gitignore
@@ -1,3 +1,2 @@
.cache/
.project
distrib/
**.project
**.settings/
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -7,9 +7,7 @@ Semantic Web application profiles, ontologies and controlled vocabularies used i

Application profiles are restrictions to the usage of existing ontologies designed for a specific applications family

- **[fr-ap](fr-ap/)**: an application profile to annotate financial report.
This profile is used by financial report visualization application
(es. https://budget.g0v.it and https://inps.g0v.it ).
- **[fr-ap](fr-ap/)**: an application profile to annotate public administration Financial reports.

## ontologies and controlled vocabularies

Expand Down
7 changes: 6 additions & 1 deletion agcom/README.md
Expand Up @@ -4,6 +4,8 @@ AGCOM vocabulary
[AGCOM](http://agicom.it/) collects periodic records about the presence of politicians in main TV shows;
the agcom vocabulary describe the terms to annotate AGICOM data.

This vocabulary define some terms used by g0v application derived from some AGCOM concepts.

The namespace for agcom vocabulary is **http://g0v-it.github.io/ontologies/agcom#**

Last Turtle RDF serialization is available in https://g0v-it.github.io/ontologies/agcom/v1.ttl
Expand All @@ -14,6 +16,7 @@ The agcom vocabulary is a semantic web application that builds upon the followin
- the [Data Catalog Vocabulary](https://www.w3.org/TR/vocab-dcat/) to describe the dataset metadata
- the [SKOS](https://www.w3.org/TR/skos-primer) to describe balance taxonomy.
- the [DCMI Metadata Terms](http://dublincore.org/documents/dcmi-terms/)
- the [W3C time ontology](https://www.w3.org/TR/owl-time/)
- some facilities from [sdmx ontologies](https://sdmx.org/)

All specific [SKOS taxonomies](https://www.w3.org/TR/skos-primer/), derived from the [Contratto di appalto servizio di monitoraggio delle trasmissioni televisive delle emittenti nazionali riferito alle aree del pluralismo socio/politico, delle garanzie dell'utente, degli obblighi specifici del servizio pubblico radiotelevisivo - CIG 4977351FF7](https://www.agcom.it/documentazione/documento?p_p_auth=fLw7zRht&p_p_id=101_INSTANCE_ls3TZlzsK0hm&p_p_lifecycle=0&p_p_col_id=column-1&p_p_col_count=1&_101_INSTANCE_ls3TZlzsK0hm_struts_action=%2Fasset_publisher%2Fview_content&_101_INSTANCE_ls3TZlzsK0hm_assetEntryId=4658125&_101_INSTANCE_ls3TZlzsK0hm_type=document) document.
Expand All @@ -35,7 +38,8 @@ Following dimensions are defined:

Following properties are defined:

- refPeriod: the observation period in witch the speakingTime metric is calculated, expressed as [time interval](http://reference.data.gov.uk/def/intervals)
- refPeriod: the observation period in witch the speakingTime metric is calculated, expressed as a time:DateTimeInterval and possibly using one of the class
exposed in the [time intervals ontology](http://reference.data.gov.uk/def/intervals/)


In this snippet describes an AGCOM observation as linked data:
Expand All @@ -50,6 +54,7 @@ In this snippet describes an AGCOM observation as linked data:
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix interval: <http://reference.data.gov.uk/def/intervals/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix sdmx-subject: <http://purl.org/linked-data/sdmx/2009/subject#> .
@prefix agcom: <https://g0v-it.github.io/ontologies/agcom#> .
@prefix resource: <http://agcom.linkeddata.cloud/resource/> .
Expand Down
5 changes: 3 additions & 2 deletions agcom/v1.ttl
Expand Up @@ -7,6 +7,7 @@
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix interval: <http://reference.data.gov.uk/def/intervals/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix sdmx-concept: <http://purl.org/linked-data/sdmx/2009/concept#> .
@prefix sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> .
@prefix sdmx-attribute: <http://purl.org/linked-data/sdmx/2009/attribute#> .
Expand Down Expand Up @@ -34,7 +35,7 @@ agcom:rilevazioni_pluralismo a qb:DataStructureDefinition ;
agcom:refPeriod a rdf:Property, qb:DimensionProperty;
rdfs:label "reference period"@en;
rdfs:subPropertyOf sdmx-dimension:refPeriod;
rdfs:range interval:Interval;
rdfs:range time:DateTimeInterval;
qb:concept sdmx-concept:refPeriod ;
.

Expand All @@ -54,7 +55,7 @@ agcom:context a rdf:Property, qb:DimensionProperty;
.

agcom:speakingTime a rdf:Property, qb:MeasureProperty;
rdfs:label "Speaking time in second"@en;
rdfs:label "Speaking time in seconds"@en;
rdfs:subPropertyOf sdmx-measure:obsValue;
rdfs:range xsd:nonNegativeInteger ;
.
Expand Down
8 changes: 6 additions & 2 deletions auditel/README.md
Expand Up @@ -2,6 +2,7 @@ AUDITEL vocabulary
=================

AUDITEL is a private consortium that collects data about italian TV shows audience.
This vocabulary define some terms used by g0v application derived from some AUDITEL concepts.

The namespace for auditel terms is **http://g0v-it.github.io/ontologies/auditel#**

Expand All @@ -13,6 +14,7 @@ The auditel vocabulary is a semantic web application that builds upon the follow
- the [Data Catalog Vocabulary](https://www.w3.org/TR/vocab-dcat/) to describe the dataset metadata
- the [SKOS](https://www.w3.org/TR/skos-primer) to describe balance taxonomy.
- the [DCMI Metadata Terms](http://dublincore.org/documents/dcmi-terms/)
- the [W3C time ontology](https://www.w3.org/TR/owl-time/)
- some facilities from [sdmx ontologies](https://sdmx.org/)

auditel vocabulary also reuses some individual references to linked open data provided by [UK e-gov](https://github.com/alphagov/datagovuk_reference) and from [AGCOM vocabulary](https://g0v-it.github.io/ontologies/agcom/)
Expand All @@ -25,11 +27,12 @@ Following metrics is observed in AUDITEL data:

in following dimensions:

- context: the auditel monitored context expressed as SKOS concept, same as agcom:context
- context: the auditel monitored context expressed as SKOS concept

Following properties are defined:

- refPeriod: the observation period , expressed as [time interval](http://reference.data.gov.uk/def/intervals). Same as agcom:refPeriod
- refPeriod: the observation period , expressed as a time:DateTimeInterval and possibly
using one of the classexposed in the [time intervals ontology](http://reference.data.gov.uk/def/intervals/).


In this snippet describes an AUDITEL observation as linked data:
Expand All @@ -42,6 +45,7 @@ In this snippet describes an AUDITEL observation as linked data:
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix interval: <http://reference.data.gov.uk/def/intervals/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix sdmx-subject: <http://purl.org/linked-data/sdmx/2009/subject#> .
@prefix agcom: <https://g0v-it.github.io/ontologies/agcom#> .
@prefix auditel: <https://g0v-it.github.io/ontologies/auditel#> .
Expand Down
60 changes: 60 additions & 0 deletions auditel/v1.ttl
@@ -1 +1,61 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix qb: <http://purl.org/linked-data/cube#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix interval: <http://reference.data.gov.uk/def/intervals/> .
@prefix time: <http://www.w3.org/2006/time#> .
@prefix sdmx-concept: <http://purl.org/linked-data/sdmx/2009/concept#> .
@prefix sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#> .
@prefix sdmx-attribute: <http://purl.org/linked-data/sdmx/2009/attribute#> .
@prefix sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#> .
@prefix sdmx-metadata: <http://purl.org/linked-data/sdmx/2009/metadata#> .
@prefix sdmx-code: <http://purl.org/linked-data/sdmx/2009/code#> .
@prefix sdmx-subject: <http://purl.org/linked-data/sdmx/2009/subject#> .
@prefix auditel: <https://g0v-it.github.io/ontologies/auditel#> .


# -- Data structure definitions ----------------------------

auditel:rilevazioni_auditel a qb:DataStructureDefinition ;
qb:component
[ qb:dimension auditel:refPeriod ; qb:componentRequired "true"^^xsd:boolean; qb:componentAttachment qb:DataSet],
[ qb:dimension auditel:context ; qb:componentRequired "true"^^xsd:boolean],
[ qb:measure auditel:audience],
[ qb:measure auditel:share],
[ qb:measure auditel:rating]
.


# -- Dimensions and measures ----------------------------

auditel:refPeriod a rdf:Property, qb:DimensionProperty;
rdfs:label "reference period"@en;
rdfs:subPropertyOf sdmx-dimension:refPeriod;
rdfs:range time:DateTimeInterval;
qb:concept sdmx-concept:refPeriod ;
.
auditel:context a rdf:Property, qb:DimensionProperty;
rdfs:label "Auditel measuring context"@en;
rdfs:range skos:Concept
.
auditel:audience a rdf:Property, qb:MeasureProperty;
rdfs:label "audience"@en;
rdfs:subPropertyOf sdmx-measure:obsValue;
rdfs:range xsd:nonNegativeInteger ;
.
auditel:share a rdf:Property, qb:MeasureProperty;
rdfs:label "share"@en;
rdfs:subPropertyOf sdmx-measure:obsValue;
rdfs:range xsd:float ;
.
auditel:rating a rdf:Property, qb:MeasureProperty;
rdfs:label "rating"@en;
rdfs:subPropertyOf sdmx-measure:obsValue;
rdfs:range xsd:float ;
.


2 changes: 2 additions & 0 deletions fr-ap/.gitignore
@@ -0,0 +1,2 @@
**.cache/
**distrib/

0 comments on commit 8cecddf

Please sign in to comment.