mdld-parse 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/generate.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdld-parse",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
4
4
|
"description": "A standards-compliant parser for **MD-LD (Markdown-Linked Data)** — a human-friendly RDF authoring format that extends Markdown with semantic annotations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/src/generate.js
CHANGED
|
@@ -204,7 +204,7 @@ function buildDeterministicMDLD(subjectGroups, context) {
|
|
|
204
204
|
const objShort = shortenIRI(quad.object.value, context);
|
|
205
205
|
const localName = extractLocalName(quad.object.value);
|
|
206
206
|
|
|
207
|
-
const objectText =
|
|
207
|
+
const objectText = `[${localName}] {+${objShort} ?${predShort}}\n`;
|
|
208
208
|
const objectBlockId = generateBlockId();
|
|
209
209
|
const objectBlock = {
|
|
210
210
|
id: objectBlockId,
|