Skip to content

Commit

Permalink
Test case for constant blank node (#182)
Browse files Browse the repository at this point in the history
* New test case for issue 175

* Update test-cases/RMLTC0025/mapping.ttl

Co-authored-by: Pano Maria <[email protected]>

---------

Co-authored-by: Pano Maria <[email protected]>
  • Loading branch information
TheRazorace and pmaria authored Feb 12, 2025
1 parent 6dbb0b6 commit c803cc5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test-cases/RMLTC0025/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rml: <http://w3id.org/rml/> .
@prefix ex: <http://example.com/>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:iterator "$.students[*]";
rml:referenceFormulation rml:JSONPath;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "student.json"
]
];
rml:predicateObjectMap [
rml:objectMap [
rml:reference "Name"
];
rml:predicate ex:student
];
rml:subject _:School .
2 changes: 2 additions & 0 deletions test-cases/RMLTC0025/output.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_:School <http://example.com/student> "Julio" .
_:School <http://example.com/student> "Venus" .
8 changes: 8 additions & 0 deletions test-cases/RMLTC0025/student.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"students": [{
"Name":"Venus"
},
{
"Name":"Julio"
}]
}

0 comments on commit c803cc5

Please sign in to comment.