-
Notifications
You must be signed in to change notification settings - Fork 17
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
5 changed files
with
146 additions
and
5 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
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
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
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,97 @@ | ||
@prefix rr: <http://www.w3.org/ns/r2rml#>. | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix fnml: <http://semweb.mmlab.be/ns/fnml#>. | ||
@prefix fno: <https://w3id.org/function/ontology#>. | ||
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#>. | ||
@prefix void: <http://rdfs.org/ns/void#>. | ||
@prefix dc: <http://purl.org/dc/terms/>. | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/>. | ||
@prefix rml: <http://semweb.mmlab.be/ns/rml#>. | ||
@prefix ql: <http://semweb.mmlab.be/ns/ql#>. | ||
@prefix : <http://mapping.example.com/>. | ||
@prefix ex: <https://example.org/ns/test#>. | ||
@prefix idlab-fn: <http://example.com/idlab/function/>. | ||
@prefix grel: <http://users.ugent.be/~bjdmeest/function/grel.ttl#>. | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>. | ||
@prefix prov: <http://www.w3.org/ns/prov#>. | ||
@prefix rmlt: <http://semweb.mmlab.be/ns/rml-target#>. | ||
@prefix formats: <http://www.w3.org/ns/formats/>. | ||
|
||
:target_000 a rmlt:LogicalTarget; | ||
rdfs:label "venus_target"; | ||
rmlt:serialization formats:Turtle; | ||
rmlt:target :void_000. | ||
:void_000 a void:Dataset; | ||
void:dataDump <file://data/venus.ttl>. | ||
:map_events_000 rml:logicalSource :source_000. | ||
:source_000 a rml:LogicalSource; | ||
rml:source "data.csv"; | ||
rml:referenceFormulation ql:CSV. | ||
:map_events_000 a rr:TriplesMap; | ||
rdfs:label "events". | ||
:s_000 a rr:SubjectMap. | ||
:map_events_000 rr:subjectMap :s_000. | ||
:s_000 rr:template "https://example.org/ns/test#event_{id}". | ||
:pom_000 a rr:PredicateObjectMap. | ||
:map_events_000 rr:predicateObjectMap :pom_000. | ||
:pm_000 a rr:PredicateMap. | ||
:pom_000 rr:predicateMap :pm_000. | ||
:pm_000 rr:constant ex:hasName. | ||
:pom_000 rr:objectMap :om_000. | ||
:om_000 a fnml:FunctionTermMap; | ||
rr:termType rr:Literal; | ||
rml:logicalTarget :target_000; | ||
rml:languageMap :language_000. | ||
:language_000 rr:constant "en". | ||
:om_000 fnml:functionValue :fn_000. | ||
:fn_000 rml:logicalSource :source_000; | ||
rr:predicateObjectMap :pomexec_000. | ||
:pomexec_000 rr:predicateMap :pmexec_000. | ||
:pmexec_000 rr:constant fno:executes. | ||
:pomexec_000 rr:objectMap :omexec_000. | ||
:omexec_000 rr:constant "http://example.com/idlab/function/trueCondition"; | ||
rr:termType rr:IRI. | ||
:fn_000 rr:predicateObjectMap :pom_001. | ||
:pom_001 a rr:PredicateObjectMap; | ||
rr:predicateMap :pm_001. | ||
:pm_001 a rr:PredicateMap; | ||
rr:constant idlab-fn:strBoolean. | ||
:pom_001 rr:objectMap :om_001. | ||
:om_001 a rr:ObjectMap, fnml:FunctionTermMap; | ||
fnml:functionValue :fn_001. | ||
:fn_001 rml:logicalSource :source_000; | ||
rr:predicateObjectMap :pomexec_001. | ||
:pomexec_001 rr:predicateMap :pmexec_001. | ||
:pmexec_001 rr:constant fno:executes. | ||
:pomexec_001 rr:objectMap :omexec_001. | ||
:omexec_001 rr:constant "http://example.com/idlab/function/notEqual"; | ||
rr:termType rr:IRI. | ||
:fn_001 rr:predicateObjectMap :pom_002. | ||
:pom_002 a rr:PredicateObjectMap; | ||
rr:predicateMap :pm_002. | ||
:pm_002 a rr:PredicateMap; | ||
rr:constant grel:valueParameter. | ||
:pom_002 rr:objectMap :om_002. | ||
:om_002 a rr:ObjectMap; | ||
rml:reference "name"; | ||
rr:termType rr:Literal. | ||
:fn_001 rr:predicateObjectMap :pom_003. | ||
:pom_003 a rr:PredicateObjectMap; | ||
rr:predicateMap :pm_003. | ||
:pm_003 a rr:PredicateMap; | ||
rr:constant grel:valueParameter2. | ||
:pom_003 rr:objectMap :om_003. | ||
:om_003 a rr:ObjectMap; | ||
rr:constant ""; | ||
rr:termType rr:Literal. | ||
:fn_000 rr:predicateObjectMap :pom_004. | ||
:pom_004 a rr:PredicateObjectMap; | ||
rr:predicateMap :pm_004. | ||
:pm_004 a rr:PredicateMap; | ||
rr:constant idlab-fn:str. | ||
:pom_004 rr:objectMap :om_004. | ||
:om_004 a rr:ObjectMap; | ||
rml:reference "name"; | ||
rr:termType rr:Literal. | ||
|
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,29 @@ | ||
prefixes: | ||
ex: "https://example.org/ns/test#" | ||
idlab-fn: "http://example.com/idlab/function/" | ||
grel: "http://users.ugent.be/~bjdmeest/function/grel.ttl#" | ||
xsd: "http://www.w3.org/2001/XMLSchema#" | ||
prov: "http://www.w3.org/ns/prov#" | ||
|
||
targets: | ||
venus_target: | ||
access: data/venus.ttl | ||
type: void | ||
serialization: turtle | ||
|
||
mappings: | ||
events: | ||
sources: | ||
- ['data.csv~csv'] | ||
s: ex:event_$(id) | ||
po: | ||
- p: ex:hasName | ||
o: | ||
- value: $(name) | ||
language: en | ||
targets: venus_target | ||
condition: | ||
function: idlab-fn:notEqual | ||
parameters: | ||
- [grel:valueParameter, $(name)] | ||
- [grel:valueParameter2, ""] |