Skip to content
Andreas Kuckartz edited this page Jul 5, 2014 · 1 revision

Example @context

This example is not finished

"@context" {
"foaf": "http://xmlns.com/foaf/0.1/"
"oparl": "http://oparl.de/oparl/0.1/",
"dc": "http://purl.org/dc/terms/",
"xsd": "http://www.w3.org/2001/XMLSchema#",

"agendaitem": "oparl:agendaitem",
"body": "oparl:body",
"committee": "oparl:committee",
"document": "oparl:document",
"location": "oparl:location",
"meeting": "oparl:meeting",
"organisation": "oparl:organisation",
"paper": "oparl:paper",
"person": "oparl:person",
"vote": "operl:vote",

"body": { // name conflict!
  "@id": "body",
  "@type": "@id"
},

"date": {
  "@id": ???,
  "@type": "xsd:dateTime"
},

"description": {
  "@id": ???,
  "@type": "xsd:string"
},

"email": {
   "@type": "foaf:mbox"
}

"id": {
  "@id": ???,
  "@type": "@id"
},

"last_modified": {
  "@id": "dc:modified",
  "@type": "xsd:dateTime"
},

"meeting":
  "@id": "meeting",
  "@type": "@id"
},

"organisations": {
  "@id": "organisation",
  "@type": "@id"
},

"people": {
  "@id": "person",
  "@type": "@id"
},

"people_absent": {
  "@id": "person",
  "@type": "@id"
},

"public": {
  "@id": ???,
  "@type": "xsd:boolean"
},

"related_papers"
  "@id": "paper",
  "@type": "@id"
},

"sex": "foaf:gender",

"sum": {
  "@id": ???,
  "@type": "xsd:nonNegativeInteger"
},

"title": {
  "@id": ???,
  "@type": "xsd:string"
},

"vote": { // name conflict!
  "@id": "vote",
  "@type": "@id"
},

}


{
    "@type": "agendaitem",

    "meeting": "3271", // link
    "identifier": "3.1.2", // ???
    "public": true,
    "title": "Gemeinschaftsgrundschule Hornschaftsstraße/Höhenhaus. Hier: Anfrage von Herrn Philippi",
    "result": "Geändert beschlossen",
    "resolution_text": "Der Beschluss weicht wie folgt vom Antrag ab: ...",
    "people_absent": ["1002", "1003"],
    "votings": [
        {
            "@type": "vote",

            "sum": 2,
            "vote": "DAFUER",
            "organisations": ["24"],
            "people": []
        },
        {
            "@type": "vote",

            "sum": 1,
            "vote": "ENTHALTUNG",
            "organisations": [],
            "people": ["1000"]
        },
        {
            "@type": "vote",

            "sum": 1,
            "vote": "DAGEGEN",
            "organisations": [],
            "people": ["1001"]
        }
    ],
    "last_modified": "2012-08-16T14:05:27+02:00"
}


{
    "@type": "body",

    "id": "1",
    "name": "Stadt Köln",
    "regionalschluessel": "053150000000",
    "gnd_url": "http://d-nb.info/gnd/2015732-0",
    "url": "http://www.stadt-koeln.de/",
    "operator_contact": "Tel. +49 221-221-5432, E-Mail: [email protected]",
    "license_url": "http://opendatacommons.org/licenses/odbl/1.0/"
}


{
    "@type": "committee",

    "id": "7",
    "name": "Finanzausschuss",
    "short_name": "FA",
    "body": "1", // link
    "last_modified": "2012-08-16T14:05:27+02:00"
}


{
    "@type": "document",

    "id": "3000",
    "name": "3000.pdf",
    "mime_type": "application/pdf", // vermeidbar?
    "date": "2013-01-04T07:54:13+01:00",
    "last_modified": "2013-01-04T07:54:13+01:00",
    "sha1_checksum": "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "url": "http://ris.beispielstadt.de/api/documents/3000.pdf",
    "text": "Der Übersichtsplan zeigt alle Ebenen des ...",
    "master": "2099"
}


{
    "@type": "location",

    "description": "Honschaftsstraße 312, 51061 Köln",
    "geometry": {
        "type": "Point", // welches Schema? 
        "coordinates": [7.03291, 50.98249] // weshalb an anderer Stelle lat und lon?
    },
    "last_modified": "2013-02-14T14:05:27+01:00"
}


{
    "@type": "meeting",

    "id": "3271",
    "identifier": "STA/0034/2012",
    "start": "2013-01-04T08:00:00+01:00",
    "end": "2013-01-04T12:00:00+01:00",
    "address": "Rathaus, Raum 136",
    "sequence_number": 1,
    "committees": ["STA"], // link
    "people": ["1000", "1001"],
    "invitation": "0001/2013", // link
    "result_minutes": "0002/2013", // link
    "verbatim_minutes": "0003/2013", // link
    "attachments": [ // links
        "0004/2013",
        "0005/2013"
    ],
    "last_modified": "2012-01-08T14:05:27+01:00"
}


{
    "@type": "organisation",

    "id": "15",
    "name": "SPD",
    "body": "1", // link
    "last_modified": "2012-08-16T14:05:27+02:00"
}


{
    "@type": "paper",

    "id": "1234/2012",
    "date": "2013-01-04",
    "type": "Beantwortung einer Anfrage",
    "related_papers": [
        "0768/2012"
    ],
    "main_document": "3000.pdf",
    "attachments": [
        "3002.pdf",
        "3003.pdf"
    ],
    "locations": [
        {
            "description": "Theodor-Heuss-Ring 1",
            "lat": 7.148,
            "lon": 50.023
        }
    ],
    "committees": ["STA"],
    "creators": [
        {
            "typ": "Organisation", // = @type ? dann klein
            "id": "2000" // link
        },
        {
            "typ": "Person", = @type ? dann klein
            "id": "1000" // link
        }
    ],
    "consultations": [
        {
            "meeting": "3271",
            "agendaitem": "3.1.2", // link
            "role": "Federführende Beratung"
        }
    ],
    "last_modified": "2013-01-08T12:05:27+01:00"
}


{
    "@type": "person",

    "id": "1000",
    "first_name": "Max",
    "last_name": "Mustermann",
    "academic_title": "Dr.",
    "sex": "M",
    "profession": "Rechtsanwalt",
    "email": "[email protected]",
    "phone": "+4977777",
    "fax": "+4988888",
    "address": "Musterstraße 5, 11111 Musterort",
    "last_modified": "2012-08-16T14:05:27+02:00",
    "organisations": [
        {
            "id": "2000", // link
            "start": "2011-03-01",
            "end": "2013-02-28"
        },
        {
            "id": "2001", // link
            "start": "2013-03-01"
        }
    ],
    "committees": [
        {
            "id": "7", // link
            "start": "2013-01-01"
        }
    ]
}


{
    "@type": "vote",

    "sum": 7,
    "vote": "DAFUER",
    "organisations": ["18"] // links
}


{
    "@type": "vote",

    "sum": 3,
    "vote": "DAGEGEN",
    "people": ["85", "145", "67"] // links
}
Clone this wiki locally