Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
dachafra authored Jun 7, 2024
2 parents d53da58 + 8e46786 commit 5747900
Show file tree
Hide file tree
Showing 87 changed files with 2,450 additions and 99 deletions.
25 changes: 25 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
title: "Yatter: Translating YARRRML into easy-to-read [R2]RML mappings"
license: Apache-2.0
authors:
- family-names: Chaves-Fraga
given-names: David
orcid: "http://orcid.org/0000-0003-3236-2789"
cff-version: 1.0.0
version: 1.1.0
doi: 10.5281/zenodo.7024500
date-released: 2023-05-05
url: "https://github.com/oeg-uopm/yatter"
preferred-citation:
authors:
- family-names: Iglesias-Molina
given-names: Ana
- family-names: Chaves-Fraga
given-names: David
- family-names: Dasoulas
given-names: Ioannnis
- family-names: Dimou
given-names: Anastasia
title: "Human-Friendly RDF Graph Construction: Which one do you chose?"
type: conference
booktitle: ICWE
year: 2023
2 changes: 1 addition & 1 deletion src/yatter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def inverse_translation(rdf_mapping, mapping_format=RML_URI):
rdf_mapping.bind('rr', rdflib.term.URIRef(R2RML_URI))
rdf_mapping.bind('ql', rdflib.term.URIRef(QL_URI))
yarrrml_mapping[YARRRML_PREFIXES] = add_inverse_prefix(rdf_mapping)
query = f'SELECT ?triplesMap WHERE {{ ?triplesMap {RDF_TYPE} {R2RML_TRIPLES_MAP} . }} '
query = f'SELECT ?triplesMap WHERE {{ ?triplesMap {RML_LOGICAL_SOURCE}|{R2RML_LOGICAL_TABLE} ?source . }} '
triples_map = [tm[rdflib.Variable('triplesMap')] for tm in rdf_mapping.query(query).bindings]

for tm in triples_map:
Expand Down
102 changes: 61 additions & 41 deletions src/yatter/predicateobject.py

Large diffs are not rendered by default.

Loading

0 comments on commit 5747900

Please sign in to comment.