-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from kg-construct/feature/condition
Added Condition shortcut suggestion
- Loading branch information
Showing
6 changed files
with
412 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
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: "Ben De Meester", | ||
}, | ||
{ | ||
name: "Samaneh Jozashoori", | ||
}, | ||
{ | ||
name: "Pano Maria" | ||
}, | ||
{ | ||
name: "David Chaves-Fraga" | ||
}, | ||
{ | ||
name: "Anastasia Dimou" | ||
}, | ||
], | ||
edDraftURI: "https://w3id.org/rml/fnml/spec/", | ||
editors: [ | ||
{ | ||
name: "Ben De Meester", | ||
company: "Ghent University – imec – IDLab", | ||
url: "https://ben.de-meester.org/#me", | ||
orcid: "0000-0003-0248-0987", | ||
companyURL: "https://knows.idlab.ugent.be/" | ||
} | ||
], | ||
formerEditors: [ | ||
{ | ||
name: "Anastasia Dimou", | ||
url: "https://natadimou.com/#me", | ||
orcid: "0000-0003-2138-7972", | ||
} | ||
], | ||
github: "https://github.com/kg-construct/rml-fnml", | ||
latestVersion: null, | ||
license: "w3c-software-doc", | ||
localBiblio: { | ||
RML: { | ||
title: "RDF Mapping Language (RML)", | ||
href: "https://rml.io/specs/rml/", | ||
status: "Unofficial Draft", | ||
publisher: "IDLab - imec - Ghent University", | ||
date: "08 October 2020", | ||
}, | ||
FnO: { | ||
title: "Function Ontology (FnO)", | ||
href: "https://w3id.org/function/spec/", | ||
status: "Unofficial Draft", | ||
publisher: "IDLab - imec - Ghent University", | ||
date: "10 November 2021", | ||
}, | ||
CollectionsContainers: { | ||
title: "Collections and Containers in RML", | ||
href: "https://w3id.org/kg-construct/collections-containers", | ||
status: "Unofficial Draft", | ||
publisher: "Knowledge Graph Construction W3C Community Group ", | ||
date: "16 August 2022", | ||
}, | ||
}, | ||
otherLinks: [ | ||
{ | ||
key: "Website", | ||
data: [{ | ||
value: "https://rml.io", | ||
href: "https://rml.io" | ||
}, | ||
{ | ||
value: "https://fno.io", | ||
href: "https://fno.io" | ||
}] | ||
}, | ||
], | ||
// shortName: "RML-FNML", | ||
specStatus: "CG-DRAFT", | ||
// W3C config | ||
copyrightStart: "2021", | ||
doJsonLd: true, | ||
group: "kg-construct", | ||
}; |
Oops, something went wrong.