Complex SPARQL Examples. Alexiev, V. Github gist, March, 2024.
Complex SPARQL Examples [link]URL  abstract   bibtex   
Examples of complex SPARQL queries that I've written in my practice as a Knowledge Graph engineer. Dun and Bradstreet Companies: a TARQL conversion from a DnB tabular data format with 160 columns to a semantic model based on FIBO; the query is 480 lines, 110 prefixes, 110 binds; and makes 33 nodes, 250 triples. Wikidata Org Mapping: extracts selected WD data about one organization (denoted "?it") and simplifies it to a "Company Graph" KG format, which is an extension of the euBusinessGraph Ontology; the query is rather complex: 1118 lines, 58 prefixes, 108 binds; 29 nodes, 90 triples; So it was developed in Literate Programming style in Emacs Orgmode (wd-mapping.org), then tangled (wd-mapping.m4) and finally processed with the M4 macro processor. CHIN Nomenclature Restructuring: a thesaurus of museum object types. The query is the core of an ETL process that converts from an internal (SKOS+custom) to public (SKOS+SKOSXL+schema etc) representaion; it is a complex Federated SPARQL Update of 231 lines, 13.9k chars, 18 prefixes, 50 binds; and makes 18 nodes, 99 triples. It is described in detail, going line by line.
@Misc{Alexiev2024-Complex-SPARQL,
  author       = {Vladimir Alexiev},
  title        = {{Complex SPARQL Examples}},
  howpublished = {Github gist},
  month        = mar,
  year         = 2024,
  url          = {https://gist.github.com/VladimirAlexiev/cf2de89b692bbc2ae70917aae021ec07},
  keywords     = {SPARQL, SPARQL transformation, TARQL, complex queries, Wikidata, DnB, Dun & Bradstreet, company graph, organization data, CHIN, Canadian Heritage, Nomenclature for Museum Cataloging},
  abstract     = {Examples of complex SPARQL queries that I've written in my practice as a Knowledge Graph engineer. Dun and Bradstreet Companies: a TARQL conversion from a DnB tabular data format with 160 columns to a semantic model based on FIBO; the query is 480 lines, 110 prefixes, 110 binds; and makes 33 nodes, 250 triples. Wikidata Org Mapping: extracts selected WD data about one organization (denoted "?it") and simplifies it to a "Company Graph" KG format, which is an extension of the euBusinessGraph Ontology; the query is rather complex: 1118 lines, 58 prefixes, 108 binds; 29 nodes, 90 triples; So it was developed in Literate Programming style in Emacs Orgmode (wd-mapping.org), then tangled (wd-mapping.m4) and finally processed with the M4 macro processor. CHIN Nomenclature Restructuring: a thesaurus of museum object types. The query is the core of an ETL process that converts from an internal (SKOS+custom) to public (SKOS+SKOSXL+schema etc) representaion; it is a complex Federated SPARQL Update of 231 lines, 13.9k chars, 18 prefixes, 50 binds; and makes 18 nodes, 99 triples. It is described in detail, going line by line.},
}

Downloads: 0