mdld-parse 1.0.3 → 1.0.4
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/README.md +7 -12
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# MD-LD
|
|
2
2
|
|
|
3
|
-
**Markdown-Linked Data** —
|
|
3
|
+
**Markdown-Linked Data** — Write RDF knowledge graphs as plain Markdown. Parse to quads, generate back, merge documents. Zero dependencies, round-trip safe.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Unlike Turtle, JSON-LD, or RDF/XML, MD-LD embeds semantic annotations directly into natural Markdown text. A Markdown file becomes a knowledge graph — readable by humans and machines simultaneously.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/mdld-parse)
|
|
8
8
|
|
|
@@ -34,18 +34,12 @@ Human text → Graph immediately
|
|
|
34
34
|
**Core value:** Author and maintain knowledge graphs as plain text with deterministic round-trip safety. No platforms, databases, or proprietary SaaS mediation required.
|
|
35
35
|
|
|
36
36
|
```markdown
|
|
37
|
-
[ex] <tag:
|
|
37
|
+
[ex] <tag:ame@example.com,2026:>
|
|
38
38
|
|
|
39
|
-
#
|
|
39
|
+
# Alice {=ex:alice .prov:Person label}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Created by [Alice] {+ex:alice ?ex:author .prov:Person label} at `2026-06-01T11:54:22.153Z` {prov:wasGeneratedAt ^^xsd:dateTime}.
|
|
44
|
-
|
|
45
|
-
## Main Sources
|
|
46
|
-
|
|
47
|
-
[MD-LD website](https://mdld.js.org/) {?member label}
|
|
48
|
-
[Temporal API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal) {?member label}
|
|
41
|
+
[Alice Smith] {ex:fullName}
|
|
42
|
+
[alice@example.com] {ex:email}
|
|
49
43
|
```
|
|
50
44
|
|
|
51
45
|
**Generates RDF quads** that work with n3.js, rdflib, and any RDF/JS-compatible library.
|
|
@@ -97,6 +91,7 @@ MD-LD removes the intermediary. Writing becomes publishing. Publishing becomes g
|
|
|
97
91
|
- **Continuous semantic narrative** — Unifies chat, tasks, notes, emails, calendar, files
|
|
98
92
|
- **Native time dimension** — Every action, statement, correction becomes part of the graph
|
|
99
93
|
- **Decentralized authority** — RFC 4151 tag: URIs enable self-sovereign identity without central registries
|
|
94
|
+
- **Text-native agent memory** - LLM Agent memory substrate in plain text — parse context, write knowledge, merge with other agents, all as Markdown files. No database required.
|
|
100
95
|
|
|
101
96
|
### Real-World Applications
|
|
102
97
|
|
package/dist/index.js
CHANGED
|
@@ -1837,7 +1837,7 @@ function groupQuadsByNode(quads) {
|
|
|
1837
1837
|
else reverseIndex.set(objectValue, [quad]);
|
|
1838
1838
|
}
|
|
1839
1839
|
ensure(predicate.value).push(quad);
|
|
1840
|
-
if (predicate.value ===
|
|
1840
|
+
if (predicate.value === "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" && object.termType === "NamedNode") ensure(object.value).push(quad);
|
|
1841
1841
|
if (object.termType === "Literal" && object.datatype) ensure(object.datatype.value || object.datatype).push(quad);
|
|
1842
1842
|
}
|
|
1843
1843
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mdld-parse",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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
|
"packageManager": "pnpm@10.33.4+sha512.1c67b3b359b2d408119ba1ed289f34b8fc3c6873412bec6fd264fbdc82489e510fcbecb9ce9d22dae7f3b76269d8441046014bdca53b9979cd7a561ad631b800",
|