forked from poole/hyde
-
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.
start implementing SWP describer RDF export, part of #53
- Loading branch information
1 parent
0977b82
commit ac83285
Showing
4 changed files
with
26 additions
and
8 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,13 @@ | ||
import { COMPETENCE_AREAS } from "./competence.js"; | ||
|
||
export function rdfExport() { | ||
let s = ""; | ||
for (let a of Object.values(COMPETENCE_AREAS)) { | ||
s += a.property + "\n"; | ||
} | ||
console.log(s); | ||
const REPO = "https://github.com/hitontology/ontology"; | ||
const title = `Add new Software Product '${document.getElementById("title").value}'`; | ||
let encodedBody = encodeURIComponent(s); | ||
window.open(`${REPO}/issues/new?title=${encodeURIComponent(title)}&body=${encodedBody}`); | ||
} |
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