feat(rdf): add RDF materialization for GraphQL schemas #169
Open
mfkaptan-motius wants to merge 9 commits intomainfrom
Open
feat(rdf): add RDF materialization for GraphQL schemas #169mfkaptan-motius wants to merge 9 commits intomainfrom
mfkaptan-motius wants to merge 9 commits intomainfrom
Conversation
jdacoello
requested changes
Mar 10, 2026
Collaborator
There was a problem hiding this comment.
SKOS related data should go into one file, and schema related (instantiation of ontology terms) into another file. They both might be used collectively as two separate data graphs within the same SPARQL query.
- Split the output of the RDF data
Also, the generate command group seems orphaned.
I think one command would be enough
s2dm export rdfcreates anoutput/skos.ttlandoutput/data_graph.ttl
- Simplify into one rdf command only
94ee4b6 to
f2778a7
Compare
- Materialize GraphQL SDL to RDF with SKOS and s2dm ontology - Support ObjectType, InterfaceType, InputObjectType, UnionType, EnumType - Add sorted n-triples serialization and write_rdf_artifacts Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
- Fix registry init command by adding missing working directory arg Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
Add SPARQL-based graph traversal for RDF-materialized GraphQL schemas, enabling declarative querying of schema structure instead of relying solely on introspection. - Add `sparql_queries` module with 3 predefined queries: fields-outputting-enum, object-types-with-fields, list-type-fields - Add `s2dm query` CLI command supporting pre-generated RDF files and on-the-fly materialization from GraphQL schemas - Extend `rdf_materializer` with sorted n-triples serialization, multi-format output (nt, turtle, json-ld), and format aliases - Add `print_table` to logger for tabular SPARQL result display - Update s2dm-publish action to export all RDF formats on release - Extend CLI and example docs with SPARQL query examples Closes #77 Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
- Replace `generate schema-rdf` with `export rdf` in CLI docs and examples
- Document output files: skos.{nt,ttl} and data_graph.{nt,ttl}
- Update query examples to use data_graph.nt for SPARQL queries
Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
- Refactor path resolver into generic _PathResolverOption base - Accept multiple RDF files and URLs via --rdf - Add builtin SPARQL query registry folder - Accept custom query files via --query-file Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
Signed-off-by: Mustafa Kaptan <mustafa.kaptan@motius.de>
19a28c2 to
6dce93b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #79