zazuko / cube-creator

A tool to create RDF cubes from CSV files
GNU Affero General Public License v3.0
13 stars 2 forks source link

META: Technical Debt #401

Open l00mi opened 3 years ago

l00mi commented 3 years ago

Issue to collect Technical Debt in regard of general solution.

tpluscode commented 2 years ago

Re. cube metadata, currently category (dcat:theme) is required and queried directly from the UI from the published cubes database. They are also assumed to exist in a specific named graph...

Until we decide on a better solution, they can be populated from Lindas like

prefix schema: <http://schema.org/>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>

INSERT {
  graph <https://lindas.admin.ch/sfa/opendataswiss> {
    ?theme a schema:DefinedTerm ;
      schema:name ?name ;
      schema:inDefinedTermSet <https://register.ld.admin.ch/opendataswiss/category> ;
      ?p ?o .
  }
} WHERE {
    service <https://int.lindas.admin.ch/query> {
          graph <https://lindas.admin.ch/sfa/opendataswiss> {
                  ?theme a schema:DefinedTerm ;
                         schema:name ?name ;
                         schema:inDefinedTermSet <https://register.ld.admin.ch/opendataswiss/category> ;
                         ?p ?o .
          }
    }
}