Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dcat for issue 118 #119

Merged
merged 2 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions test-cases/RMLSTC0001a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0001a/Friends.json>;
rml:encoding rml:UTF-8;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json"
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
10 changes: 4 additions & 6 deletions test-cases/RMLSTC0001b/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0001b/Friends-UTF16.json>;
rml:encoding rml:UTF-16;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends-UTF16.json"
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
9 changes: 4 additions & 5 deletions test-cases/RMLSTC0002a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0002a/Friends.json>;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json"
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
11 changes: 5 additions & 6 deletions test-cases/RMLSTC0002b/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0002b/Friends.json.gz>;
rml:compression rml:gzip;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json.gz";
rml:compression rml:gzip;
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
12 changes: 5 additions & 7 deletions test-cases/RMLSTC0002c/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0002c/Friends.json.zip>;
rml:compression rml:zip;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json.zip";
rml:compression rml:zip;
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
12 changes: 5 additions & 7 deletions test-cases/RMLSTC0002d/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0002d/Friends.json.tar.xz>;
rml:compression rml:tarxz;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json.tar.xz";
rml:compression rml:tarxz;
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
12 changes: 5 additions & 7 deletions test-cases/RMLSTC0002e/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0002e/Friends.json.tar.gz>;
rml:compression rml:targz;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json.tar.gz";
rml:compression rml:targz;
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
3 changes: 1 addition & 2 deletions test-cases/RMLSTC0003/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@base <http://example.com/rules/> .

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source [ a rml:RelativePathSource;
rml:source [ a rml:FilePath;
rml:path "./Friends.nt";
];
rml:iterator """
Expand Down
12 changes: 5 additions & 7 deletions test-cases/RMLSTC0007a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0007a/Friends.json>;
rml:encoding rml:UTF-8;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
10 changes: 4 additions & 6 deletions test-cases/RMLSTC0007c/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0007c/Friends.xml>;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.xml"
];
rml:referenceFormulation rml:XPath;
rml:iterator "//Friends/Character";
];
Expand Down
10 changes: 4 additions & 6 deletions test-cases/RMLSTC0007d/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0007d/Friends.xml>;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.xml"
];
rml:referenceFormulation [ a rml:XPathReferenceFormulation;
rml:namespace [ a rml:Namespace;
rml:namespacePrefix "ex";
Expand Down
23 changes: 10 additions & 13 deletions test-cases/RMLSTC0008a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0008a/Friends.json>;
rml:encoding rml:UTF-8;
.

<#DCATSourceAccess2> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0008a/Friends2.json>;
rml:encoding rml:UTF-8;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand All @@ -42,7 +35,11 @@

<#TriplesMap2> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess2>;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "Friends2.json";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
23 changes: 10 additions & 13 deletions test-cases/RMLSTC0008b/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccessJSON> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0008b/Friends.json>;
rml:encoding rml:UTF-8;
.

<#DCATSourceAccessCSV> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLSTC0008b/Friends.csv>;
rml:encoding rml:UTF-8;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccessJSON>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand All @@ -42,7 +35,11 @@

<#TriplesMap2> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccessCSV>;
rml:source [ a rml:RelativePathSource;
rml:root rml:MappingDirectory;
rml:path "Friends.csv";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:CSV;
];
rml:subjectMap [ a rml:SubjectMap;
Expand Down
11 changes: 5 additions & 6 deletions test-cases/RMLTTC0000/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLTTC0000/Friends.json>;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json";
rml:encoding rml:UTF-8
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand Down
27 changes: 27 additions & 0 deletions test-cases/RMLTTC0001a/Friends.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[
{
"id": 0,
"name": "Monica Geller",
"age": 33
},
{
"id": 1,
"name": "Rachel Green",
"age": 34
},
{
"id": 2,
"name": "Joey Tribbiani",
"age": 35
},
{
"id": 3,
"name": "Chandler Bing",
"age": 36
},
{
"id": 4,
"name": "Ross Geller",
"age": 37
}
]
15 changes: 7 additions & 8 deletions test-cases/RMLTTC0001a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
@prefix rml: <http://w3id.org/rml/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix formats: <http://www.w3.org/ns/formats/> .
@base <http://example.com/rules/> .

<#DCATSourceAccess> a rml:Source, dcat:Distribution;
dcat:downloadURL <http://w3id.org/rml/resources/rml-io/RMLTTC0001a/Friends.json>;
.

<#TriplesMap> a rml:TriplesMap;
rml:logicalSource [ a rml:LogicalSource;
rml:source <#DCATSourceAccess>;
rml:source [ a rml:FilePath;
rml:root rml:MappingDirectory;
rml:path "Friends.json";
];
rml:referenceFormulation rml:JSONPath;
rml:iterator "$[*]";
];
Expand All @@ -37,8 +35,9 @@
.

<#TargetDump1> a rml:LogicalTarget;
rml:target [ a rml:Target, dcat:Distribution;
dcat:downloadURL <file://./dump1.nq>;
rml:target [ a rml:FilePath;
rml:root rml:CurrentWorkingDirectory;
rml:path "./dump1.nq";
];
rml:serialization formats:N-Quads;
.
Loading