mdld-parse 0.3.2 → 0.3.3

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 CHANGED
@@ -91,8 +91,8 @@ Each predicate form determines the graph edge:
91
91
  | Form | Edge | Example | Meaning |
92
92
  |-------|---------|------------------------------|------------------|
93
93
  | `p` | S → L | `[Alice] {name}` | literal property |
94
- | `?p` | S → O | `[NASA](ex:nasa) {?org}` | object property |
95
- | `!p` | O → S | `[Parent](ex:p) {!hasPart}` | reverse object |
94
+ | `?p` | S → O | `[NASA] {=ex:nasa ?org}` | object property |
95
+ | `!p` | O → S | `[Parent] {=ex:p !hasPart}` | reverse object |
96
96
 
97
97
  ## Syntax Reference
98
98
 
@@ -282,7 +282,7 @@ Parse MD-LD markdown and return RDF quads with origin tracking.
282
282
  const result = parse(
283
283
  `# Article {=ex:article .Article}
284
284
 
285
- [Alice](ex:alice) {?author}`,
285
+ [Alice] {=ex:alice ?author}`,
286
286
  { context: { ex: 'http://example.org/' } }
287
287
  );
288
288
 
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "mdld-parse",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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",
7
7
  "exports": {
8
- ".": "./index.js"
8
+ ".": "./src/index.js"
9
9
  },
10
10
  "files": [
11
- "index.js"
11
+ "index.js",
12
+ "src"
12
13
  ],
13
14
  "scripts": {
14
- "test": "node tests.js",
15
- "spec": "node validate-spec.js"
15
+ "test": "node tests/index.js"
16
16
  },
17
17
  "keywords": [
18
18
  "mdld",
package/src/index.js ADDED
@@ -0,0 +1,10 @@
1
+ export { parse } from './parse.js';
2
+ export { serialize } from './serialize.js';
3
+ export {
4
+ DEFAULT_CONTEXT,
5
+ DataFactory,
6
+ hash,
7
+ expandIRI,
8
+ shortenIRI,
9
+ parseSemanticBlock
10
+ } from './utils.js';