Commit graph

35 commits

Author SHA1 Message Date
0813192990 Add Step 2 example queries and Rake tasks.
Same 1-hop and 2-hop CONSTRUCT queries as Step 1, but run against
graph-02.ttl to show the result of literal-to-IRI transformations.
2026-02-28 17:50:26 +01:00
0c1da570bb Add prefixes to SPARQL queries and prettify example Turtle output.
Add namespace prefixes (rdfs, migrants, person, personp, work, workp,
location, locationp) to query files. Use --prettify in Rake tasks so
example files use abbreviated IRIs. Fix 2hop task to use graph-02.
2026-02-28 17:37:52 +01:00
6870f9b726 Add Rake tasks to generate 1-hop and 2-hop example extracts. 2026-02-28 09:06:36 +01:00
02f0260625 Add 1-hop and 2-hop example CONSTRUCT queries for step-01 graph. 2026-02-28 08:52:12 +01:00
e81120d353 Add pipeline steps (graph-01, graph-02) to Rakefile. 2026-02-28 08:18:04 +01:00
aa6f46bfc2 Fix IRI generation by sanitizing column names with spaces.
Regenerate graph-01.ttl and graph-02.ttl with the corrected output.
2026-02-28 06:20:18 +01:00
34754cc68a Reimplement mapping scripts (step-01, step-02) in Rust.
step-01 performs W3C Direct Mapping from MariaDB to Turtle using sophia.
step-02 applies SPARQL UPDATE queries using oxigraph.
2026-02-28 06:08:38 +01:00
cd85a66c46 Add schema inspection queries and script.
SPARQL queries to list classes and properties, and src/schema.rb
CLI to run them against any graph file. Includes bundler/setup
for compatibility with Ruby 4.0 without bundle exec.
2026-02-26 20:49:35 +01:00
d2481d6e80 Add Step 2: SPARQL UPDATE queries to transform literals into objects.
19 queries in updates/ convert categorical columns (continent, country,
city, gender, profession, etc.) from literals to typed RDF objects with
rdfs:label. map/step-02.rb applies them to produce data/graph-02.ttl.
Also fix step-01.rb to sanitize column names with spaces and avoid
prefix serialization issues with fragment IRIs.
2026-02-26 19:45:08 +01:00
da22d312a9 Add Step 1: Direct mapping from MariaDB to RDF.
Dockerfile and docker-compose.yml for MariaDB container,
map/step-01.rb implementing the W3C Direct Mapping for all 9 tables.
2026-02-26 16:42:30 +01:00
87dcd4d65c Include the input SQL file.
This is a file that can be loaded in a MariaDB database.
2026-02-26 15:29:50 +01:00
0f6a7d4a94 Making test pass. 2026-02-22 21:11:19 +01:00
16eb0f9e69 Remove redundant schema information. 2026-02-22 20:27:17 +01:00
37aa504767 Adding an RSpec test. 2026-02-22 20:26:08 +01:00
abe70062a8 Adding an example data. 2026-02-22 19:52:06 +01:00
aaab3d352c Renaming files 2026-02-22 19:06:30 +01:00
df9f12365c Rename Turtle file. 2026-02-22 18:55:29 +01:00
0d607f4dff Separate the ontology from the data files. 2026-02-22 18:42:24 +01:00
eb255df64a Create a Rakefile. 2026-02-22 18:40:33 +01:00
e5747acc61 Print records when linking them to Wikidata. 2026-02-22 18:27:13 +01:00
38ce175b5b Mapping countries. 2026-02-22 18:04:55 +01:00
c9c768aa17 Create multiple mapping files. 2026-02-22 17:25:48 +01:00
a7d3ad3f62 Generating a single Markdown file describing the tables. 2026-02-22 11:57:04 +01:00
75a0c5de79 Rename prefix mig to tm. 2026-02-22 11:36:18 +01:00
ff33e77fb4 Reformating Turtle files. 2026-02-22 11:33:59 +01:00
eba9136962 List defined regions. 2026-02-22 11:11:11 +01:00
84d4e16d7b Minor refactoring 2026-02-22 10:44:02 +01:00
6bf5b40990 Add religion vocabulary to the ontology. 2026-02-22 10:36:43 +01:00
f025be2e60 Mapping persons religions. 2026-02-22 10:18:45 +01:00
5b6b16c90e Refactoring for readability. 2026-02-22 09:20:35 +01:00
32ef100fdc Add scripts for tables person and religions. 2026-02-22 08:20:48 +01:00
c97a0778c1 Add GeoNames 2026-02-22 07:00:39 +01:00
Daniel
351529c8ee Script to generate countries. 2026-02-22 05:34:45 +01:00
Daniel
cd6ea52f07 Inspect locations 2026-02-14 15:41:11 +01:00
6b1c6a2e58 Initial commit 2026-02-14 12:08:05 +00:00