-
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.
use list instead of set to define the result of expression and define…
… empty value handling (#121 & #16) (#128) * clarified NULL values, cartesian product for templates and term types of term maps * added a first draft for base IRIs * cleaning * constant-valued term maps * all clarifications wrt empty and multiple values related to #13 and #16 should be clarified for the expression and term map. * added clarification for LS cardinality and exception according to #57 * use list instead of set to define the result of expression (#121) * fixes after merge of branch * improve example styling * fix template example * apply example styling on all examples and some small fixes * spelling fix * fix draft link --------- Co-authored-by: Anastasia Dimou <anastasia.dimou@kuleuven.be>
- Loading branch information
Showing
8 changed files
with
510 additions
and
253 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,91 @@ | ||
async function loadTurtle() { | ||
//this is the function you call in 'preProcess', to load the highlighter | ||
const worker = await new Promise(resolve => { | ||
require(["core/worker"], ({ worker }) => resolve(worker)); | ||
}); | ||
const action = "highlight-load-lang"; | ||
const langURL = | ||
"https://cdn.jsdelivr.net/gh/redmer/highlightjs-turtle/src/languages/turtle.js"; | ||
const propName = "hljsDefineTurtle"; // This funtion is defined in the highlighter being loaded | ||
const lang = "turtle"; // this is the class you use to identify the language | ||
worker.postMessage({ action, langURL, propName, lang }); | ||
return new Promise(resolve => { | ||
worker.addEventListener("message", function listener({ data }) { | ||
const { action: responseAction, lang: responseLang } = data; | ||
if (responseAction === action && responseLang === lang) { | ||
worker.removeEventListener("message", listener); | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
} | ||
|
||
var respecConfig = { | ||
// check https://respec.org/docs/ for the meaning of these keys | ||
preProcess: [loadTurtle], | ||
authors: [ | ||
{ | ||
name: "Pano Maria", | ||
company: "Skemu", | ||
url: "https://skemu.com", | ||
orcid: "0009-0000-2598-1894", | ||
companyURL: "https://skemu.com" | ||
}, | ||
{ | ||
name: "Anastasia Dimou", | ||
mailto: "anastasia.dimou@kuleuven.be", | ||
company: "KU Leuven", | ||
orcid: "0000-0003-2138-7972", | ||
companyURL: "https://dtai.cs.kuleuven.be/" | ||
}, | ||
], | ||
edDraftURI: "https://w3id.org/rml/core/spec", | ||
editors: [ | ||
{ | ||
name: "Pano Maria", | ||
company: "Skemu", | ||
url: "https://skemu.com", | ||
orcid: "0009-0000-2598-1894", | ||
companyURL: "https://skemu.com" | ||
}, | ||
{ | ||
name: "Anastasia Dimou", | ||
mailto: "anastasia.dimou@kuleuven.be", | ||
company: "KU Leuven", | ||
orcid: "0000-0003-2138-7972", | ||
companyURL: "https://dtai.cs.kuleuven.be/" | ||
}, | ||
], | ||
formerEditors: [ | ||
], | ||
github: "https://github.com/kg-construct/rml-core", | ||
license: "w3c-software-doc", | ||
localBiblio: { | ||
RML: { | ||
title: "RDF Mapping Language (RML)", | ||
href: "https://rml.io/specs/rml/", | ||
status: "Unofficial Draft", | ||
publisher: "", | ||
date: "", | ||
}, | ||
}, | ||
otherLinks: [ | ||
{ | ||
key: "Website", | ||
data: [{ | ||
value: "https://rml.io", | ||
href: "https://rml.io" | ||
}, | ||
{ | ||
value: "https://fno.io", | ||
href: "https://fno.io" | ||
}] | ||
}, | ||
], | ||
shortName: "RML-Core", | ||
specStatus: "CG-DRAFT", | ||
// W3C config | ||
copyrightStart: "2021", | ||
doJsonLd: true, | ||
group: "kg-construct", | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,25 @@ | ||
# Base IRIs | ||
The base IRI of the [=mapping document=] is used to resolve relative IRIs in the RML document following the specification of the Turtle serialisaiton. | ||
|
||
## Base IRI for mapping rules | ||
|
||
## Base IRI for vocabulary | ||
The [=base IRI=] of the [=Triples Map=] is used in resolving relative IRIs produced by the [=RML mapping=]. | ||
|
||
|
||
<pre class="ex-mapping nohighlight"> | ||
# Triples Map that has a declared base IRI | ||
<#TriplesMap> | ||
a rml:TriplesMap; | ||
rml:baseIri <http://example.com/> . | ||
</pre> | ||
|
||
The [=base IRI=] MUST be a valid IRI. It SHOULD NOT contain question mark (“?”) or hash (“#”) characters and SHOULD end in a slash (“/”) character. | ||
|
||
To obtain an absolute IRI from a relative IRI, the term generation rules of RML use simple string concatenation, rather than the more complex algorithm for resolution of relative URIs defined in Section 5.2 of [RFC3986]. This ensures that the original database value can be reconstructed from the generated absolute IRI. Both algorithms are equivalent if all of the following are true: | ||
|
||
1. The base IRI does not contain question marks or hashes, | ||
2. the base IRI ends in a slash, | ||
3. the relative IRI does not start with a slash, and | ||
4. the relative IRI does not contain any “.” or “..” path segments. | ||
|
||
|
Oops, something went wrong.