Skip to content

Instantly share code, notes, and snippets.

View ioggstream's full-sized avatar

Roberto Polli ioggstream

View GitHub Profile
{
"SchemaVocabulary": {
"oneOf": [
{
"enum": [
"ACO"
],
"title": "Diploma di Accademia di Belle Arti, Danza, Arte Drammatica, ISIA, ecc. Conservatorio (vecchio ordinamento)",
"type": "string"
},
@ioggstream
ioggstream / province.yaml
Last active December 20, 2021 11:15
Vocabolario delle province in jsonschema
components:
schemas:
VocabolarioProvinceISTAT:
title: Provincia
oneOf:
- const: https://w3id.org/italia/controlled-vocabulary/territorial-classifications/provinces/001
title: Torino
- const: https://w3id.org/italia/controlled-vocabulary/territorial-classifications/provinces/002
title: Vercelli
- const: https://w3id.org/italia/controlled-vocabulary/territorial-classifications/provinces/003
@ioggstream
ioggstream / schema-context.json
Last active December 20, 2021 11:29
Attach context with vocabularies to a schema.
{
"@context": {
"@base": "http://api.example#",
"@vocab": "http://w3id.org/italia/onto/CPV/",
"id_pratica":"@id",
"documento_richiesto": {
"@id": "hasEducationLevel",
"@type": "@id",
"@context": {
"@base": "http://w3id.org/italia/controlled-vocabulary/classifications-for-people/education-level"
EducationLevelVocab:
oneOf:
- const: NED
title: 'Nessun titolo di studio '
- const: PSE
title: 'Licenza elementare/ Attestato di valutazione finale '
- const: LSE
title: Licenza media o avviamento professionale (conseguito non oltre l'anno 1965)
/Diploma di Istruzione secondaria di I grado
- const: USV
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
xmlns:dct="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:admsapit="https://w3id.org/italia/onto/ADMS/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:prov="http://www.w3.org/ns/prov#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dcatapit="http://dati.gov.it/onto/dcatapit#"
@ioggstream
ioggstream / deleteme.rdf
Last active December 13, 2021 15:49
deleteme ontology
<?xml version="1.0"?>
<rdf:RDF xmlns="https://w3id.org/italia/onto/NDC/"
xml:base="https://w3id.org/italia/onto/NDC/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:l0="https://dw3id.org/italia/onto/l0/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
@ioggstream
ioggstream / jsonld-context-metaschema.json
Last active December 22, 2021 15:37
jsonld metaschema
{
"$id": "https://gist.githubusercontent.com/ioggstream/8e858509a3ca535c5af230986aeefaf7/raw/jsonld-context-metaschema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true,
"https://json-schema.org/draft/2020-12/vocab/applicator": true,
"https://json-schema.org/draft/2020-12/vocab/validation": true,
"https://json-schema.org/draft/2020-12/vocab/meta-data": true,
"https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
"https://gregsdennis.github.io/json-everything/vocabs-data": true
@ioggstream
ioggstream / jsonschema.context.jsonld
Created October 5, 2021 22:56
jsonschema context
{
"@context": {
"@version": 1.1,
"xsd": "http://www.w3.org/2001/XMLSchema#",
"@vocab": "https://www.w3.org/2019/wot/json-schema#",
"id": { "@id": "@id" },
"type": { "@id": "@type" },
"object": "ObjectSchema",
"array": "ArraySchema",
"boolean": "BooleanSchema",
@ioggstream
ioggstream / countries.yaml
Created September 29, 2021 10:53
countries.yaml
'@context':
'@vocab': http://publications.europa.eu/ontology/authority/
country_code:
'@id': dct:identifier
dct: http://purl.org/dc/elements/1.1/
deprecated: {}
label_en:
'@id': skos:prefLabel
'@language': en
label_it:
{
"@id" : "resource:/data/distribution/CPVAPIT-JSON-LD",
"@type" : [ "resource:/onto/ADMS/SemanticAssetDistribution", "owl:NamedIndividual" ],
"description" : [ {
"@language" : "it",
"@value" : "Questa è la distribuzione JSON-LD dell'ontologia delle Persone"
}, {
"@language" : "en",
"@value" : "This is the distribution in JSON-LD of the persons ontology"
} ],