semantic-kraus / dw-data

converts XML/TEI data into CIDOCish RDF
https://semantic-kraus.github.io/dw-data/
MIT License
0 stars 1 forks source link

all dw-data created via XSLT: create trig files #21

Closed BOberreither closed 1 year ago

BOberreither commented 1 year ago

TTL > TRIG

  1. Add another prefix to the ttl file: @prefix dw: <https://sk.acdh.oeaw.ac.at/project/dritte-walpurgisnacht> .
  2. Wrap all the statements into a single pair of {}
  3. Put "fa: " in front of it. Looks something like (example taken from another file and somewhat adjusted):
    
    @prefix cidoc: <http://www.cidoc-crm.org/cidoc-crm/> .
    @prefix frbroo: <https://cidoc-crm.org/frbroo/sites/default/files/FRBR2.4-draft.rdfs#> .
    @prefix dw: <https://sk.acdh.oeaw.ac.at/project/fackel-online> .
    @prefix ns1: <https://w3id.org/lso/intro/beta202304#> .
    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
    @prefix schema: <https://schema.org/> .
    @prefix sk: <https://sk.acdh.oeaw.ac.at/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

dw: { https://sk.acdh.oeaw.ac.at/D_000001-001-000/carrier a frbroo:F4_Manifestation_Singleton ; rdfs:label "Carrier of: 1.1 Zeitungsartikel aus: Neues Wiener Journal" ; cidoc:P128_carries sk:D_000001-001-000 .

<https://sk.acdh.oeaw.ac.at/D_000001-001-000/creation> a cidoc:E65_Creation ;
    rdfs:label "Creation of: 1.1 Zeitungsartikel aus: Neues Wiener Journal" ;
    cidoc:P94_has_created sk:D_000001-001-000 .

... ... } [end of file]


4. Rename: `.ttl` > `.trig`

Voila!
BergListe commented 1 year ago

Obsolete, I think.