forked from FacultadInformatica-LinkedData/Curso2020-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
91 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,58 @@ | ||
@prefix rr: <http://www.w3.org/ns/r2rml#>. | ||
@prefix rml: <http://semweb.mmlab.be/ns/rml#>. | ||
@prefix ql: <http://semweb.mmlab.be/ns/ql#>. | ||
@prefix transit: <http://vocab.org/transit/terms/>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix wgs84_pos: <http://www.w3.org/2003/01/geo/wgs84_pos#>. | ||
@prefix vocab: <http://example.org#> . | ||
@base <http://example.com/ns#>. | ||
|
||
<#TriplesMap1> | ||
rml:logicalSource [ | ||
rml:source "PathToData.csv" ; | ||
rml:referenceFormulation ql:CSV | ||
]; | ||
rr:subjectMap [ | ||
rr:template "http://subjectUri/{columnReference}"; | ||
rr:class vocab:MyClass | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate vocab:property1; | ||
rr:objectMap [ | ||
rml:reference "column" | ||
] | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate vocab:property2; | ||
rr:objectMap [ | ||
rml:reference "uri-colum"; | ||
rr:termType rr:IRI. | ||
] | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate vocab:property3; | ||
rr:objectMap [ | ||
rml:reference "integer-column"; | ||
rr:datatype <http://www.w3.org/2001/XMLSchema#integer> | ||
] | ||
]; | ||
|
||
rr:predicateObjectMap [ | ||
rr:predicate vocab:relation; | ||
rr:objectMap [ | ||
rr:parentTriplesMap <#TriplesMap2> | ||
] | ||
] . | ||
|
||
<#TriplesMap2> | ||
rml:logicalSource [ | ||
rml:source "PathToData.csv" ; | ||
rml:referenceFormulation ql:CSV | ||
]; | ||
rr:subjectMap [ | ||
rml:reference "columnReference"; | ||
rr:class vocab:MyClass2 | ||
]. |
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,33 @@ | ||
prefixes: | ||
rr: http://www.w3.org/ns/r2rml# | ||
foaf: http://xmlns.com/foaf/0.1/ | ||
xsd: http://www.w3.org/2001/XMLSchema# | ||
rdfs: http://www.w3.org/2000/01/rdf-schema# | ||
rev: http://purl.org/stuff/rev# | ||
schema: http://schema.org/ | ||
dct: http://purl.org/dc/terms/ | ||
rml: http://semweb.mmlab.be/ns/rml# | ||
ql: http://semweb.mmlab.be/ns/ql# | ||
rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# | ||
vocab: http://example.org# | ||
|
||
mappings: | ||
triplesmap1: | ||
sources: | ||
- [pathToData.csv~csv] | ||
s: http://subjectUri/$(columnReference) | ||
po: | ||
- [a, vocab:MyClass] | ||
- [vocab:property1,$(column)] | ||
- [vocab:property2,$(uri-column)~iri] | ||
- [vocab:property3,$(integer-column),xsd:integer] | ||
- p: vocab:relation | ||
o: | ||
mapping: triplesmap2 | ||
|
||
triplesmap2: | ||
sources: | ||
- [pathToData.csv~csv] | ||
s: $(uri-column) | ||
po: | ||
- [a, vocab:MyClass2] |