ondata / albo-pop

Un piccolo e semplice esperimento, che ha come obiettivo quello di rendere più "popolari" gli Albi Pretori
http://albopop.it/
MIT License
16 stars 9 forks source link

Definizione catalogo AlboPOP secondo le specifiche DCAT_AP-IT #271

Open jenkin opened 7 years ago

jenkin commented 7 years ago

Nell'ambito dell'hackathon di #ODFest17 abbiamo definito una bozza di catalogo dati di albopop compatibile con le specifiche DCAT_AP-IT.

Il file XML può essere generato automaticamente dalla tabella del catalogo dei feed rss descritta in #270 e sostituirebbe la lista di feed rss descritta in #262 e usata in #261. Può essere alla base di un processo di generazione automatica delle pagine dei singoli comuni.

<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
    <!ENTITY foaf "http://xmlns.com/foaf/0.1/" >
    <!ENTITY owl "http://www.w3.org/2002/07/owl#" >
    <!ENTITY dc "http://purl.org/dc/elements/1.1/" >
    <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" >
    <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
    <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
    <!ENTITY dct "http://purl.org/dc/terms/" >
    <!ENTITY locn "http://www.w3.org/ns/locn#" >
    <!ENTITY geo "http://www.w3.org/2003/01/geo/wgs84_pos#" >
    <!ENTITY time "http://www.w3.org/2006/time#" >
    <!ENTITY org "http://www.w3.org/ns/org#" >
    <!ENTITY dcat "http://www.w3.org/ns/dcat#" >
    <!ENTITY dcatapit "http://dati.gov.it/onto/dcatapit#" >
    <!ENTITY vcard "http://www.w3.org/2006/vcard/" >
]>

<rdf:RDF
    xmlns:dc="&dc;"
    xmlns:rdfs="&rdfs;"
    xmlns:foaf="&foaf;"
    xmlns:owl="&owl;"
    xmlns:xsd="&xsd;"
    xmlns:rdf="&rdf;"
    xmlns:geo="&geo;"
    xmlns:org="&org;"
    xmlns:locn="&locn;"
    xmlns:dct="&dct;"
    xmlns:time="&time;"
    xmlns:dcat="&dcat;"
    xmlns:dcatapit="&dcatapit;"
    xmlns:vcard="&vcard;"
>

    <owl:Ontology rdf:about="http://albopop.it/ontology">
        <dct:license rdf:resource="https://creativecommons.org/licenses/by/4.0/" />
        <owl:imports rdf:resource="http://www.w3.org/ns/locn" />
        <owl:imports rdf:resource="http://www.w3.org/ns/org" />
        <owl:imports rdf:resource="http://xmlns.com/foaf/0.1/" />
        <owl:imports rdf:resource="http://www.w3.org/2006/time" />
        <owl:imports rdf:resource="http://www.w3.org/ns/dcat.rdf" />
        <owl:imports rdf:resource="http://www.dati.gov.it/onto/DCAT-AP_IT.owl" />
    </owl:Ontology>

    <dcatapit:Catalog>

        <dct:title>AlboPOP</dct:title>
        <dct:description>Catalogo di AlboPOP</dct:description>

        <dct:publisher>
            <dcatapit:Organization rdf:about="http://ondata.it/me">
                <vcard:fn>onData</vcard:fn>
                <vcard:hasEmail rdf:resource="mailto:albopop@ondata.it"/>
                <vcard:hasUrl rdf:resource="mailto:http://ondata.it"/>
            </dcatapit:Organization>
        </dct:publisher>

        <dct:modified rdf:datatype="&xsd;date">2017-06-01</dct:modified>

        <foaf:homepage rdf:resource="http://ondata.it"/>
        <dct:language rdf:resource="http://publications.europa.eu/resource/authority/language/ITA"/>
        <dcat:themeTaxonomy rdf:resource="http://publications.europa.eu/resource/authority/data-theme"/>

        <dcat:dataset>

            <!-- http://albopop.it/comune/[nome-comune]/dataset/ -->
            <dcat:Dataset rdf:about="http://albopop.it/pa/c_a546/dataset">

                <!-- albopop:[codice ipa] -->
                <dct:identifier>albopop:c_a546</dct:identifier>
                <!-- AlboPOP - Comune - [Nome Comune] -->
                <dct:title>AlboPOP - Comune - Bagheria</dct:title>
                <!-- *non ufficiale* RSS feed dell'Albo Pretorio del Comune di [Nome Comune] -->
                <dct:description>*non ufficiale* RSS feed dell'Albo Pretorio del Comune di Bagheria</dct:description>
                <!-- <dct:modified></dct:modified> -->
                <!-- Pagina dedicata sul sito di Albopop (http://albopop.it/comune/[nome-comune]) -->
                <dcat:landingPage rdf:resource="http://albopop.it/comune/bagheria/"/>               
                <!-- Data di inserimento in AlboPOP (YYYY-MM-DD) -->
                <dct:issued rdf:datatype="&xsd;date">2017-01-01</dct:issued>

                <dcat:theme>http://publications.europa.eu/resource/authority/data-theme/GOVE</dcat:theme>
                <dct:accrualPeriodicity rdf:resource="http://publications.europa.eu/resource/authority/frequency/DAILY"/>
                <dct:language rdf:resource="http://publications.europa.eu/resource/authority/language/ITA"/>

                <dct:source rdf:resource="http://comune.bagheria.pa.it/albo-pretorio/albo-pretorio-online/"/>
                <dct:rightsHolder>
                    <!-- http://albopop.it/pa/[codice ipa]/agent -->
                    <dcatapit:Agent rdf:about="http://albopop.it/pa/c_a546/agent">
                       <!-- [codice ipa] -->
                       <dct:identifier>c_a546</dct:identifier>
                       <!-- Comune di [Nome Comune] -->
                       <foaf:name xml:lang="it">Comune di Bagheria</foaf:name>
                       <!-- [url comune] -->
                       <foaf:homepage rdf:resource="http://www.comune.bagheria.pa.it"/>
                    </dcatapit:Agent>
                </dct:rightsHolder>

                <dcat:distribution>
                    <!-- http://albopop.it/pa/[codice ipa]/rss -->
                    <dcat:Distribution rdf:about="http://albopop.it/pa/c_a546/rss">
                        <!-- AlboPOP - Comune - [Nome Comune] - RSS -->
                        <dct:title>AlboPOP - Comune - Bagheria - RSS</dct:title>
                        <!-- [url feed rss] -->
                        <dcat:accessURL rdf:resource="http://feeds.feedburner.com/BagheriaAlboPretorio"/>
                        <dct:license rdf:resource="https://creativecommons.org/licenses/by/4.0/"/>
                        <dcat:mediaType>applications/rss+xml</dcat:mediaType>
                    </dcat:Distribution>
                </dcat:distribution>

                <dcat:contactPoint rdf:resource="http://ondata.it/me"/>

                <dcat:publisher>
                    <dcatapit:Agent>
                        <!-- [nome manutentore] -->
                        <dct:identifier>Mario Rossi</dct:identifier>
                        <!-- [nome manutentore] -->
                        <foaf:name xml:lang="it">Mario Rossi</foaf:name>
                        <!-- [mail manutentore] -->
                        <foaf:mail>mario.rossi@mail.com</foaf:mail>
                    </dcatapit:Agent>
                </dcat:publisher>

                <dct:spatial>
                    <!-- http://www.istat.it/[codice istat] -->
                    <dct:Location rdf:about="http://www.istat.it/082006">
                        <locn:geometry>
                            <locn:Geometry>
                                <geo:lat>38.07892</geo:lat>
                                <geo:long>13.51237</geo:long>
                            </locn:Geometry>
                        </locn:geometry>
                    </dct:Location>
                </dct:spatial>

                <!-- Keywords -->
                <dcat:keyword>tag1</dcat:keyword>
                <dcat:keyword>tag2</dcat:keyword>

            </dcat:Dataset>

        </dcat:dataset>

    </dcatapit:Catalog>

</rdf:RDF>
riccardomariagrosso commented 7 years ago

bellissimo lavoro, interessante, complimenti

Il giorno 3 giugno 2017 18:38, Alessio Cimarelli notifications@github.com ha scritto:

Nell'ambito dell'hackathon di #ODFest17 http://opendatafest.it/ abbiamo definito una bozza di catalogo dati di albopop https://github.com/aborruso/albo-pop/wiki/Pubblicare-i-metadati-di-un-Albo-POP-in-DCAT_AP_IT compatibile con le specifiche DCAT_AP-IT http://linee-guida-cataloghi-dati-profilo-dcat-ap-it.readthedocs.io/it/latest/ .

Il file XML può essere generato automaticamente dalla tabella del catalogo dei feed rss descritta in #270 https://github.com/aborruso/albo-pop/issues/270 e sostituirebbe la lista di feed rss descritta in #262 https://github.com/aborruso/albo-pop/issues/262 e usata in #261 https://github.com/aborruso/albo-pop/issues/261.

<?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY foaf "http://xmlns.com/foaf/0.1/" > <!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY dc "http://purl.org/dc/elements/1.1/" > <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <!ENTITY dct "http://purl.org/dc/terms/" > <!ENTITY locn "http://www.w3.org/ns/locn#" > <!ENTITY geo "http://www.w3.org/2003/01/geo/wgs84_pos#" > <!ENTITY time "http://www.w3.org/2006/time#" > <!ENTITY org "http://www.w3.org/ns/org#" > <!ENTITY dcat "http://www.w3.org/ns/dcat#" > <!ENTITY dcatapit "http://dati.gov.it/onto/dcatapit#" > <!ENTITY vcard "http://www.w3.org/2006/vcard/" > ]>

<rdf:RDF xmlns:dc="&dc;" xmlns:rdfs="&rdfs;" xmlns:foaf="&foaf;" xmlns:owl="&owl;" xmlns:xsd="&xsd;" xmlns:rdf="&rdf;" xmlns:geo="&geo;" xmlns:org="&org;" xmlns:locn="&locn;" xmlns:dct="&dct;" xmlns:time="&time;" xmlns:dcat="&dcat;" xmlns:dcatapit="&dcatapit;" xmlns:vcard="&vcard;"

AlboPOP Catalogo di AlboPOP onData 2017-06-01 albopop:c_a546 AlboPOP - Comune - Bagheria *non ufficiale* RSS feed dell'Albo Pretorio del Comune di Bagheria 2017-01-01 http://publications.europa.eu/resource/authority/data-theme/GOVE c_a546 Comune di Bagheria AlboPOP - Comune - Bagheria - RSS applications/rss+xml Mario Rossi Mario Rossi mario.rossi@mail.com 38.07892 13.51237 tag1 tag2 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub , or mute the thread .

-- http://nelfuturo.com/autore/Riccardo-Grosso

Questo è un account di posta personale di Riccardo Maria Grosso: tutte le opinioni espresse sono personali e non riflettono necessariamente quelle del mio datore di lavoro

Riservatezza: In ottemperanza al D.Lgs. n. 196 del 30/6/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietato. Nel caso in cui aveste ricevuto questo messaggio per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. Rispetto per l'ambiente - non stampare questa e.mail se davvero non ne hai bisogno

Confidentiality: According to Italian law D.Lgs. 196/2003 concerning privacy, if you are not the addressee (or responsible for delivery of the message to such person) you are hereby notified that any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this message in error, please destroy it and notify us by email. Consider the environment - do not print this email if you really do not need to do so