Skip to content

Commit aac326f

Browse files
committed
2 parents 4a6504b + bfe8d84 commit aac326f

24 files changed

+4885
-865
lines changed

LICENSE

Lines changed: 397 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# Source & Target
1+
# RML-IO
22

3-
Repository for RML Source & Target specification.
4-
Deployed to https://kg-construct.github.io/rml-io/spec/docs
3+
Repository for RML-IO specification, ontology, SHACL shapes and test cases.
4+
5+
- Specification: http://w3id.org/rml/io/spec/
6+
- Ontology: http://w3id.org/rml/io
7+
- Shapes: http://w3id.org/rml/io/shapes
8+
- Backwards compatibility with R2RML: http://w3id.org/rml/io/bc
9+
- Test cases: [test-cases](./test-cases)
510

611
## Quickstart
712

@@ -13,3 +18,13 @@ Deployed to https://kg-construct.github.io/rml-io/spec/docs
1318
- run `node publish.js` to get the index.html + archived version in the `dist` folder
1419

1520
The `dist` folder contents should mimic the contents on `https://w3id.org/kg-construct/rml-target-source`
21+
22+
## License
23+
24+
RML-IO (c) by W3C Community Group on Knowledge Graph Construction
25+
26+
RML-IO is licensed under a
27+
Creative Commons Attribution-ShareAlike 4.0 International License.
28+
29+
You should have received a copy of the license along with this
30+
work. If not, see <http://creativecommons.org/licenses/by-sa/4.0/>.

shapes/io.ttl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
3030
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
3131

32-
<http://schema.org/RMLIOLogicalSourceShape> a sh:NodeShape ;
32+
<http://w3id.org/rml/shapes/RMLLogicalSourceShape> a sh:NodeShape ;
3333
sh:description """
3434
A logical source is any source that is mapped to RDF triples.
3535
""" ;
3636
sh:message """
37-
RMLIO Logical Source requires one rml:source and depending on the source
37+
RML Logical Source requires one rml:source and depending on the source
3838
type: one rml:query, one rml:referenceFormulation and/or
3939
one rml:iterator.
4040
""" ;
41-
sh:name "RMLIO Logical Source" ;
41+
sh:name "RML Logical Source" ;
4242
sh:property [ sh:description """
4343
The source (rml:source) locates the input data source. It is a URI
4444
that represents the data source where the data source is.
@@ -50,7 +50,7 @@
5050
""" ;
5151
sh:minCount 1 ;
5252
sh:name "rml:source" ;
53-
sh:node <http://schema.org/RMLIOSourceShape> ;
53+
sh:node <http://w3id.org/rml/shapes/RMLSourceShape> ;
5454
sh:nodeKind sh:BlankNodeOrIRI ;
5555
sh:path rml:source ],
5656
[ sh:datatype xsd:string ;
@@ -84,15 +84,15 @@
8484
sh:targetClass rml:LogicalSource ;
8585
sh:targetObjectsOf rml:logicalSource .
8686

87-
<http://schema.org/RMLIOLogicalTargetShape> a sh:NodeShape ;
87+
<http://w3id.org/rml/shapes/RMLLogicalTargetShape> a sh:NodeShape ;
8888
sh:description """
8989
A logical target is any target to where generated RDF triples are exported
9090
to.
9191
""" ;
9292
sh:message """
93-
RMLIO Logical Target requires one rml:target.
93+
RML Logical Target requires one rml:target.
9494
""" ;
95-
sh:name "RMLIO Logical Target" ;
95+
sh:name "RML Logical Target" ;
9696
sh:property [ sh:description """
9797
The target (rml:target) locates the output target. It is a URI
9898
that represents the target where it must export generated RDF triples
@@ -105,23 +105,23 @@
105105
""" ;
106106
sh:minCount 1 ;
107107
sh:name "rml:target" ;
108-
sh:node <http://schema.org/RMLIOTargetShape> ;
108+
sh:node <http://w3id.org/rml/shapes/RMLTargetShape> ;
109109
sh:nodeKind sh:BlankNodeOrIRI ;
110110
sh:path rml:target ] ;
111111
sh:targetClass rml:LogicalTarget ;
112112
sh:targetObjectsOf rml:logicalTarget .
113113

114-
<http://schema.org/RMLIOSourceShape> a sh:NodeShape ;
114+
<http://w3id.org/rml/shapes/RMLSourceShape> a sh:NodeShape ;
115115
sh:description """
116116
A source describes access to a data source. Any data access description
117117
is allowed, but rml:Source provides additional properties to complete
118118
such descriptions.
119119
""" ;
120120
sh:message """
121-
RMLIO Source accepts one or multiple rml:null, one rml:query,
121+
RML Source accepts one or multiple rml:null, one rml:query,
122122
one rml:compression, and one rml:encoding. All of them are optional.
123123
""" ;
124-
sh:name "RMLIO Source" ;
124+
sh:name "RML Source" ;
125125
sh:property [ sh:datatype xsd:string ;
126126
sh:description """
127127
rml:null specifies how NULL or empty values are exposed by the data
@@ -186,17 +186,17 @@
186186
sh:targetClass rml:Source ;
187187
sh:targetObjectsOf rml:source .
188188

189-
<http://schema.org/RMLIOTargetShape> a sh:NodeShape ;
189+
<http://w3id.org/rml/shapes/RMLTargetShape> a sh:NodeShape ;
190190
sh:description """
191191
A target describes access to a data target. Any data access description
192192
is allowed, but rml:Target provides additional properties to complete
193193
such descriptions.
194194
""" ;
195195
sh:message """
196-
RMLIO Target accepts one rml:compression, and one rml:encoding.
196+
RML Target accepts one rml:compression, and one rml:encoding.
197197
All of them are optional.
198198
""" ;
199-
sh:name "RMLIO Target" ;
199+
sh:name "RML Target" ;
200200
sh:property [ sh:description """
201201
rml:compression specifies the compression algorithm to use when
202202
accessing the data target. By default, no compression is applied.

shapes/logical_source.ttl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
# Copyright Dylan Van Assche, IDLab - UGent - imec (2020 - 2023) #
44
###############################################################################
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
6-
@prefix schema: <http://schema.org/> .
6+
@prefix : <http://w3id.org/rml/shapes/> .
77
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
88
@prefix rml: <http://w3id.org/rml/> .
99
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1010

11-
schema:RMLIOLogicalSourceShape
11+
:RMLLogicalSourceShape
1212
a sh:NodeShape ;
1313
sh:targetObjectsOf rml:logicalSource ; # Object of rml:TriplesMap
1414
sh:targetClass rml:LogicalSource ; # Used as a class
1515
# Already targets 'rml:logicalSource'
16-
sh:name "RMLIO Logical Source" ;
16+
sh:name "RML Logical Source" ;
1717
sh:description """
1818
A logical source is any source that is mapped to RDF triples.
1919
""" ;
2020
sh:message """
21-
RMLIO Logical Source requires one rml:source and depending on the source
21+
RML Logical Source requires one rml:source and depending on the source
2222
type: one rml:query, one rml:referenceFormulation and/or
2323
one rml:iterator.
2424
""" ;
@@ -38,7 +38,7 @@ schema:RMLIOLogicalSourceShape
3838
sh:minCount 1 ;
3939
sh:maxCount 1 ;
4040
sh:nodeKind sh:BlankNodeOrIRI;
41-
sh:node schema:RMLIOSourceShape;
41+
sh:node :RMLSourceShape;
4242
] ;
4343

4444
# rml:iterator

shapes/logical_target.ttl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
44
###############################################################################
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
6-
@prefix schema: <http://schema.org/> .
6+
@prefix : <http://w3id.org/rml/shapes/> .
77
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
88
@prefix rml: <http://w3id.org/rml/> .
99
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1010

11-
schema:RMLIOLogicalTargetShape
11+
:RMLLogicalTargetShape
1212
a sh:NodeShape ;
1313
sh:targetObjectsOf rml:logicalTarget ; # Object of rml:TriplesMap
1414
sh:targetClass rml:LogicalTarget ; # Used as a class
1515
# Already targets 'rml:logicalTarget'
16-
sh:name "RMLIO Logical Target" ;
16+
sh:name "RML Logical Target" ;
1717
sh:description """
1818
A logical target is any target to where generated RDF triples are exported
1919
to.
2020
""" ;
2121
sh:message """
22-
RMLIO Logical Target requires one rml:target.
22+
RML Logical Target requires one rml:target.
2323
""" ;
2424

2525
# rml:target
@@ -38,6 +38,6 @@ schema:RMLIOLogicalTargetShape
3838
sh:minCount 1 ;
3939
sh:maxCount 1 ;
4040
sh:nodeKind sh:BlankNodeOrIRI;
41-
sh:node schema:RMLIOTargetShape;
41+
sh:node :RMLTargetShape;
4242
] ;
4343
.

shapes/source.ttl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
44
###############################################################################
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
6-
@prefix schema: <http://schema.org/> .
6+
@prefix : <http://w3id.org/rml/shapes/> .
77
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
88
@prefix rml: <http://w3id.org/rml/> .
99
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1010

11-
schema:RMLIOSourceShape
11+
:RMLSourceShape
1212
a sh:NodeShape ;
1313
sh:targetObjectsOf rml:source ; # Object of rml:LogicalSource
1414
sh:targetClass rml:Source ; # Used as a class
1515
# Already targets 'rml:source'
16-
sh:name "RMLIO Source" ;
16+
sh:name "RML Source" ;
1717
sh:description """
1818
A source describes access to a data source. Any data access description
1919
is allowed, but rml:Source provides additional properties to complete
2020
such descriptions.
2121
""" ;
2222
sh:message """
23-
RMLIO Source accepts one or multiple rml:null, one rml:query,
23+
RML Source accepts one or multiple rml:null, one rml:query,
2424
one rml:compression, and one rml:encoding. All of them are optional.
2525
""" ;
2626

shapes/target.ttl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33
# Copyright Dylan Van Assche, IDLab - UGent - imec (2023) #
44
###############################################################################
55
@prefix sh: <http://www.w3.org/ns/shacl#> .
6-
@prefix schema: <http://schema.org/> .
6+
@prefix : <http://w3id.org/rml/shapes/> .
77
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
88
@prefix rml: <http://w3id.org/rml/> .
99
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1010

11-
schema:RMLIOTargetShape
11+
:RMLTargetShape
1212
a sh:NodeShape ;
1313
sh:targetObjectsOf rml:target ; # Object of rml:LogicalTarget
1414
sh:targetClass rml:Target ; # Used as a class
1515
# Already targets 'rml:target'
16-
sh:name "RMLIO Target" ;
16+
sh:name "RML Target" ;
1717
sh:description """
1818
A target describes access to a data target. Any data access description
1919
is allowed, but rml:Target provides additional properties to complete
2020
such descriptions.
2121
""" ;
2222
sh:message """
23-
RMLIO Target accepts one rml:compression, and one rml:encoding.
23+
RML Target accepts one rml:compression, and one rml:encoding.
2424
All of them are optional.
2525
""" ;
2626

spec/dev.html

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Source &amp; Target</title>
4+
<title>RML-IO</title>
55
<meta charset='utf-8'>
66
<link rel="stylesheet" type="text/css" href="./resources/css/extras.css"/>
77
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove" defer></script>
@@ -299,21 +299,11 @@
299299
// !!!! IMPORTANT !!!! MAKE THE ABOVE BLINK IN YOUR HEAD
300300
};
301301
</script>
302-
<script data-goatcounter="https://dataio.goatcounter.com/count"
303-
async src="//gc.zgo.at/count.js"></script>
304-
<noscript>
305-
<img src="https://dataio.goatcounter.com/count?p=/test-noscript">
306-
</noscript>
307302
</head>
308303
<body>
309304
<section id='abstract' data-include="section/abstract.md" data-include-format="markdown"></section>
310305

311-
<section id='sotd'>
312-
<p data-format="markdown">
313-
This is an early draft,
314-
yet efforts are made to keep things stable.
315-
</p>
316-
</section>
306+
<section id='sotd'></section>
317307

318308
<section id="conformance"></section>
319309

0 commit comments

Comments
 (0)