Skip to content

Develop - #6

Merged
ataBarzegar79 merged 6 commits into
masterfrom
develop
Aug 22, 2026
Merged

Develop#6
ataBarzegar79 merged 6 commits into
masterfrom
develop

Conversation

@ataBarzegar79

Copy link
Copy Markdown
Collaborator

No description provided.

- run_sparql() dispatches queries to a remote SPARQL endpoint (via
  sparql_query) or a local rdflib model (via rdflib::rdf_query())
- safe_query() wraps run_sparql() with error handling and now accepts
  expected_cols to guarantee column presence in the result
- Tests in tests/testthat/test-sparql_source.R cover dispatch and
  column‑injection behaviour
- extract_list_edges: fully traverses rdf:List structures referenced by owl:unionOf, owl:intersectionOf, owl:oneOf to capture all members
- extract_restrictions: extracts owl:Restriction axioms including onProperty, target, relation, and human-readable cardinality labels
- extract_schema_owl: main function that aggregates classes, properties, subclass hierarchies, domains, ranges, extra edges (e.g., subPropertyOf, equivalentClass, inverseOf), union/intersection lists, and restrictions
- Uses dplyr for data manipulation and SPARQL queries via safe_query (expected to be provided elsewhere)
- Imports dplyr operators (%>%, filter, mutate, distinct, bind_rows, select, case_when)
@ataBarzegar79
ataBarzegar79 merged commit 29c7375 into master Aug 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant