-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from chrdebru/missing-test
A test case for selecting values from attributes (XML only)
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
|
||
<persons> | ||
<person fname="Bob" lname="Smith" amount="30.0E0"> | ||
</person> | ||
<person fname="Sue" lname="Jones" amount="20.0E0"> | ||
</person> | ||
<person fname="Bob" lname="Smith" amount="30.0E0"> | ||
</person> | ||
</persons> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@prefix ex: <http://example.com/> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix rml: <http://w3id.org/rml/> . | ||
|
||
<http://example.com/base/TriplesMap1> a rml:TriplesMap ; | ||
rml:logicalSource [ a rml:LogicalSource ; | ||
rml:iterator "/persons/person" ; | ||
rml:referenceFormulation rml:XPath ; | ||
rml:source _:b347486 ] ; | ||
rml:predicateObjectMap [ rml:objectMap [ rml:reference "@amount" ] ; | ||
rml:predicate ex:owes ] ; | ||
rml:subjectMap [ rml:class foaf:Person ; | ||
rml:template "http://example.com/{@fname};{@lname}" ] . | ||
|
||
_:b347486 a rml:RelativePathSource ; | ||
rml:path "ious.xml" . | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<http://example.com/Bob;Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> . | ||
<http://example.com/Bob;Smith> <http://example.com/owes> "30.0E0" . | ||
<http://example.com/Sue;Jones> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> . | ||
<http://example.com/Sue;Jones> <http://example.com/owes> "20.0E0" . | ||
|