mdld-parse 0.9.9 → 1.0.0

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.
Files changed (55) hide show
  1. package/README.md +242 -330
  2. package/dist/index.js +1793 -1336
  3. package/package.json +4 -4
  4. package/dist/.nojekyll +0 -0
  5. package/dist/CNAME +0 -1
  6. package/dist/README.md +0 -500
  7. package/dist/docs/API.md +0 -435
  8. package/dist/docs/Architecture.md +0 -190
  9. package/dist/docs/Guide.md +0 -816
  10. package/dist/docs/LLM-MDLD-Inducer.md +0 -550
  11. package/dist/docs/LiterateRDF.md +0 -472
  12. package/dist/docs/Parser.md +0 -720
  13. package/dist/docs/Performance.md +0 -238
  14. package/dist/docs/Spec-render.md +0 -1439
  15. package/dist/docs/Subject.md +0 -180
  16. package/dist/docs/Syntax.md +0 -463
  17. package/dist/docs/TodoList.md +0 -215
  18. package/dist/docs/Use-Cases.md +0 -354
  19. package/dist/docs/guide-m.md +0 -56
  20. package/dist/docs/index.html +0 -108
  21. package/dist/docs/index.md +0 -56
  22. package/dist/docs/one-page.md +0 -322
  23. package/dist/docs/origin.md +0 -460
  24. package/dist/docs/polarity.md +0 -586
  25. package/dist/docs/primary-subject.md +0 -326
  26. package/dist/docs/statements.md +0 -226
  27. package/dist/docs/tokenization-performance-report.md +0 -164
  28. package/dist/examples/Cookbook.md +0 -32
  29. package/dist/examples/Status-SHACL.md +0 -31
  30. package/dist/examples/demo/index.md +0 -35
  31. package/dist/examples/demo/journal.md +0 -58
  32. package/dist/examples/demo/minimal.md +0 -23
  33. package/dist/examples/demo/project.md +0 -84
  34. package/dist/examples/demo/prov.md +0 -107
  35. package/dist/examples/demo/rdf.md +0 -69
  36. package/dist/examples/demo/recipe.md +0 -50
  37. package/dist/examples/demo/research.md +0 -84
  38. package/dist/examples/demo/shacl.md +0 -161
  39. package/dist/examples/demo/space-mission.md +0 -58
  40. package/dist/examples/demo/tasks.md +0 -175
  41. package/dist/examples/demo/xsd.md +0 -91
  42. package/dist/examples/dogfood.md +0 -288
  43. package/dist/examples/few-shot.md +0 -309
  44. package/dist/examples/graph/rdf-graph.html +0 -473
  45. package/dist/examples/graph/rdf_force_graph_web_component.html +0 -506
  46. package/dist/examples/index.md +0 -45
  47. package/dist/examples/llm-time-workflow.md +0 -173
  48. package/dist/examples/statements.md +0 -43
  49. package/dist/examples/workflow.md +0 -150
  50. package/dist/index.html +0 -3049
  51. package/dist/logo.svg +0 -7
  52. package/dist/spec/Spec-compact.md +0 -368
  53. package/dist/spec/Spec-ultra.md +0 -232
  54. package/dist/spec/Spec.md +0 -1116
  55. package/dist/spec/index.md +0 -46
@@ -1,84 +0,0 @@
1
- [research] <https://research.example.org/>
2
- [data] <https://research.example.org/datasets/>
3
-
4
- # Medical Imaging AI Research {=research:paper .prov:Entity label}
5
-
6
- This paper explores how deep learning attention mechanisms can improve automated diagnosis from medical imaging data, covering the full arc from dataset assembly through model training to peer-reviewed publication.
7
-
8
- ## Authors {=research:authors .prov:Entity label}
9
-
10
- The work was led by **[Dr. Sarah Martinez](mailto:sarah.martinez@mit.edu)** {rdfs:label} {research:email} at MIT, who served as [Lead Researcher] {research:role} and was responsible for [methodology development] {research:contribution}. Joining her was **[Dr. James Liu](mailto:james.liu@mit.edu)** {=research:james-liu .prov:Person rdfs:label research:email}, the team's [ML Engineer] {research:role}, who took charge of [model implementation] {research:contribution}.
11
-
12
- ## Research Activity {=research:research-activity .prov:Activity label}
13
-
14
- The project ran from [2024-01-01] {prov:startedAtTime ^^xsd:date} through [2024-03-15] {prov:endedAtTime ^^xsd:date}, carried out by the [Research Team] {+research:authors ?prov:wasAssociatedWith} according to the [Medical AI Research Plan] {+research:plan .prov:Plan ?prov:hadPlan} they had drafted the previous autumn.
15
-
16
- ## Dataset Collection {=research:dataset-collection .prov:Activity label}
17
-
18
- Assembling a dataset of sufficient quality and scale was the first major challenge.
19
-
20
- ### Primary Dataset {=data:primary-dataset .research:Dataset .prov:Entity label}
21
-
22
- The team sourced [80,000] {data:trainCount ^^xsd:integer} DICOM training images from the [GitHub Medical Imaging Repository] {research:source}, setting aside [10,000] {data:valCount ^^xsd:integer} for validation and another [10,000] {data:testCount ^^xsd:integer} for final testing. The images span [15] {data:classCount ^^xsd:integer} anatomical structures. It was assembled during the [dataset collection phase] {+research:dataset-collection ?prov:wasGeneratedBy}.
23
-
24
- ### Augmented Dataset {=data:augmented-dataset .research:Dataset .prov:Entity label}
25
-
26
- Working from that [primary collection] {+data:primary-dataset ?prov:wasDerivedFrom}, the team produced a [512x512] {data:resolution} grayscale augmented set enriched with [patient metadata] {data:features}, covering [1,000] {data:patientCount ^^xsd:integer} individual patients to reduce demographic bias. This derived set was also [generated] {+research:dataset-collection ?prov:wasGeneratedBy} as part of the same collection activity.
27
-
28
- ## Model Development {=research:model-development .prov:Activity label}
29
-
30
- Training ran through February — from [2024-02-01] {prov:startedAtTime ^^xsd:date} to [2024-02-28] {prov:endedAtTime ^^xsd:date}. [Dr. James Liu] {+research:james-liu ?prov:wasAssociatedWith} drove the implementation, feeding the model both the [raw] {+data:primary-dataset ?prov:used} and [augmented] {+data:augmented-dataset ?prov:used} datasets. The process produced a [trained model artifact] {+research:trained-model ?prov:generated} ready for evaluation.
31
-
32
- ## Model Evaluation {=research:evaluation .prov:Activity label}
33
-
34
- Evaluation began on [2024-03-01] {prov:startedAtTime ^^xsd:date}. The [trained model] {+research:trained-model ?prov:used} was put through a comprehensive test suite that yielded the [evaluation results] {+research:eval-results ?prov:generated} reported below.
35
-
36
- ### Performance Metrics {=research:metrics .prov:Entity label}
37
-
38
- The results were strong across the board. Training accuracy reached [94.5%] {research:trainAcc ^^xsd:decimal}, with validation holding at [92.3%] {research:valAcc ^^xsd:decimal} and the held-out test set at [91.8%] {research:testAcc ^^xsd:decimal}. The F1 score came in at [0.89] {research:f1 ^^xsd:decimal} and AUC-ROC at [0.93] {research:auc ^^xsd:decimal}, both statistically significant at [p < 0.05] {research:significance} across a sample of [1,000] {research:sampleSize ^^xsd:integer} patients.
39
-
40
- ## Paper Reports Clinical Accuracy {=research:stmt-accuracy .rdf:Statement .prov:Entity label}
41
-
42
- **The research paper** {+research:paper ?rdf:subject} *reports* {+research:testAcc ?rdf:predicate} **91.8% test accuracy** {+research:metrics ?rdf:object}.
43
- Derived from: [Evaluation Results] {+research:eval-results ?prov:wasDerivedFrom}
44
- Generated by: [Model Evaluation] {+research:evaluation ?prov:wasGeneratedBy}
45
- Established: [2024-03-15T00:00:00Z] {prov:generatedAtTime ^^xsd:dateTime}
46
-
47
- ## Paper Was NASA-Funded {=research:stmt-publication .rdf:Statement .prov:Entity label}
48
- **The research paper** {+research:paper ?rdf:subject} *was funded by* {+prov:wasAttributedTo ?rdf:predicate} **NASA Space Medicine** {+research:nasa ?rdf:object}.
49
- Generated by: [Publication Activity] {+research:publication ?prov:wasGeneratedBy}
50
- Derived from: [Research Activity] {+research:research-activity ?prov:wasDerivedFrom}
51
- Established: [2024-04-15T00:00:00Z] {prov:generatedAtTime ^^xsd:dateTime}
52
-
53
- ## SHACL Validation Shapes
54
-
55
- ### Paper Validation Shape {=research:PaperShape .sh:NodeShape label}
56
-
57
- To ensure the graph stays consistent, we defined a shape targeting every [Paper] {+research:Paper ?sh:targetClass} in the graph. Any paper must carry exactly [one title] {+#title ?sh:property sh:name}, at least [one author] {+#author ?sh:property sh:name}, and at least [one citation] {+#citation ?sh:property sh:name} — otherwise it isn't a complete scientific record.
58
-
59
- ### Paper must have exactly one title. {=#title .sh:PropertyShape sh:message}
60
- The [rdfs:label] {+rdfs:label ?sh:path} property holds the title — exactly [1] {sh:minCount sh:maxCount ^^xsd:integer}.
61
-
62
- ## Paper must have at least one author. {=#author .sh:PropertyShape sh:message}
63
- Every paper needs at least [1] {sh:minCount ^^xsd:integer} value on [author] {+research:author ?sh:path}.
64
-
65
- ## Paper must have at least one citation. {=#citation .sh:PropertyShape sh:message}
66
- Same idea for citations: [citation] {+research:citation ?sh:path} must appear at least [1] {sh:minCount ^^xsd:integer} time.
67
-
68
- ### Test Data
69
-
70
- #### Valid Paper {=research:valid-paper .research:Paper label}
71
- This is **[Medical Imaging AI Research] {rdfs:label}**, authored by [Dr. Sarah Martinez] {+research:sarah-martinez ?research:author} and carrying [15] {research:citation ^^xsd:integer} citations — it should pass all three constraints cleanly.
72
-
73
- #### Invalid Paper {=research:invalid-paper .research:Paper label}
74
- This stub has a title of [Untitled] {rdfs:label} but no author and no citation value — [intentionally incomplete] {research:citation} to demonstrate what a violation looks like.
75
-
76
- ## Funding and Provenance
77
-
78
- ### Funding Entity {=research:funding .prov:Entity label}
79
-
80
- The work was made possible by grant [NRA-2024-12345] {research:grantNumber}, a [$500,000] {research:amount ^^xsd:decimal} award from [NASA Space Medicine] {+research:nasa ?prov:wasAttributedTo .prov:Organization} running from [2024 to 2026] {research:period}.
81
-
82
- ### Publication Activity {=research:publication .prov:Activity label}
83
-
84
- On [2024-04-15] {prov:startedAtTime ^^xsd:date} the team submitted [Medical Imaging AI Research] {+research:paper ?prov:used} and it was accepted by [Medical Journal] {+research:journal ?prov:wasGeneratedBy}. The funding, the data, the model, and the results all now have a complete provenance trail traceable through this document.
@@ -1,161 +0,0 @@
1
- [sh] <http://www.w3.org/ns/shacl#>
2
- [rdf] <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
3
- [rdfs] <http://www.w3.org/2000/01/rdf-schema#>
4
- [xsd] <http://www.w3.org/2001/XMLSchema#>
5
- [my] <tag:alice@example.com,2026:>
6
-
7
- # SHACL Validation Demo {=my:shacl-demo .prov:Entity label}
8
-
9
- Demonstrates SHACL validation shapes with self-documenting examples.
10
-
11
- ## Person Validation Shape
12
-
13
- ### Person Shape {=my:PersonShape .sh:NodeShape label}
14
-
15
- Validates all [Person] {+my:Person ?sh:targetClass} nodes with proper constraints.
16
-
17
- **Name Rule** {+my:PersonShape-name .sh:PropertyShape ?sh:property}
18
- Path: [name] {+rdfs:label ?sh:path}
19
- Required: [1] {sh:minCount ^^xsd:integer sh:maxCount ^^xsd:integer}
20
- Datatype: [string] {+xsd:string ?sh:datatype}
21
-
22
- > Every person must have exactly one name. {sh:message}
23
-
24
- **Email Rule** {+my:PersonShape-email .sh:PropertyShape ?sh:property}
25
- Path: [email] {+my:email ?sh:path}
26
- Required: [1] {sh:minCount ^^xsd:integer}
27
- Datatype: [string] {+xsd:string ?sh:datatype}
28
- Pattern: [.*@.*] {sh:pattern}
29
-
30
- > Email must be a valid email address. {sh:message}
31
-
32
- **Age Rule** {+my:PersonShape-age .sh:PropertyShape ?sh:property}
33
- Path: [age] {+my:age ?sh:path}
34
- Datatype: [integer] {+xsd:integer ?sh:datatype}
35
- Minimum: [0] {sh:minInclusive ^^xsd:integer}
36
- Maximum: [150] {sh:maxInclusive ^^xsd:integer}
37
-
38
- > Age must be between 0 and 150 years. {sh:message}
39
-
40
- ## Test Data
41
-
42
- ### Valid Person {=my:valid-person .my:Person label}
43
-
44
- Name: [Alice Smith] {rdfs:label}
45
- Email: [alice@example.com] {my:email}
46
- Age: [30] {my:age ^^xsd:integer}
47
-
48
- ### Invalid Person {=my:invalid-person .my:Person label}
49
-
50
- Name: [Bob] {rdfs:label}
51
- Age: [-5] {my:age ^^xsd:integer}
52
-
53
- ## Product Validation Shape
54
-
55
- ### Product Shape {=my:ProductShape .sh:NodeShape label}
56
-
57
- Validates [Product] {+my:Product ?sh:targetClass} nodes with business rules.
58
-
59
- **SKU Rule** {+my:ProductShape-sku .sh:PropertyShape ?sh:property}
60
- Path: [sku] {+my:sku ?sh:path}
61
- Required: [1] {sh:minCount ^^xsd:integer sh:maxCount ^^xsd:integer}
62
- Datatype: [string] {+xsd:string ?sh:datatype}
63
- Min length: [3] {sh:minLength ^^xsd:integer}
64
- Max length: [50] {sh:maxLength ^^xsd:integer}
65
-
66
- > Product SKU must be 3-50 characters. {sh:message}
67
-
68
- **Price Rule** {+my:ProductShape-price .sh:PropertyShape ?sh:property}
69
- Path: [price] {+my:price ?sh:path}
70
- Required: [1] {sh:minCount ^^xsd:integer}
71
- Datatype: [decimal] {+xsd:decimal ?sh:datatype}
72
- Minimum: [0.01] {sh:minInclusive ^^xsd:decimal}
73
-
74
- > Product price must be positive. {sh:message}
75
-
76
- **Category Rule** {+my:ProductShape-category .sh:PropertyShape ?sh:property}
77
- Path: [category] {+my:category ?sh:path}
78
- Required: [1] {sh:minCount ^^xsd:integer}
79
- In: [Electronics, Books, Clothing] {+my:categories ?sh:in}
80
-
81
- > Category must be one of: Electronics, Books, Clothing. {sh:message}
82
-
83
- ## Test Data
84
-
85
- ### Valid Product {=my:valid-product .my:Product label}
86
-
87
- SKU: [ELEC-001] {my:sku}
88
- Name: [Wireless Mouse] {rdfs:label}
89
- Price: [29.99] {my:price ^^xsd:decimal}
90
- Category: [Electronics] {my:category}
91
-
92
- ### Invalid Product {=my:invalid-product .my:Product label}
93
-
94
- SKU: [AB] {my:sku}
95
- Price: [-10.00] {my:price ^^xsd:decimal}
96
- Category: [Toys] {my:category}
97
-
98
- ## Complex Validation Shape
99
-
100
- ### Order Validation Shape {=my:OrderShape .sh:NodeShape label}
101
-
102
- Validates [Order] {+my:Order ?sh:targetClass} with conditional logic.
103
-
104
- **Customer Rule** {=my:OrderShape-customer .sh:PropertyShape ?sh:property}
105
- Path: [customer] {+my:customer ?sh:path}
106
- Required: [1] {sh:minCount ^^xsd:integer}
107
- Node: [Person] {+my:Person ?sh:node}
108
-
109
- > Order must have a valid customer. {sh:message}
110
-
111
- **Items Rule** {=my:OrderShape-items .sh:PropertyShape ?sh:property}
112
- Path: [items] {+my:items ?sh:path}
113
- Min count: [1] {sh:minCount ^^xsd:integer}
114
- Node kind: [BlankNodeOrIRI] {+sh:BlankNodeOrIRI ?sh:nodeKind}
115
-
116
- > Order must have at least one item. {sh:message}
117
-
118
- **Total Validation** {=my:OrderShape-total .sh:PropertyShape ?sh:property}
119
- Path: [total] {+my:total ?sh:path}
120
- Datatype: [decimal] {+xsd:decimal ?sh:datatype}
121
- Min inclusive: [0.01] {sh:minInclusive ^^xsd:decimal}
122
-
123
- > Order total must be positive. {sh:message}
124
-
125
- ## Logical Constraints
126
-
127
- ### Exclusive Properties Shape {=my:ExclusiveShape .sh:NodeShape label}
128
-
129
- Shows OR (sh:or) and XOR (sh:xone) constraints.
130
-
131
- **Either/Or Rule** {=my:ExclusiveShape-either .sh:PropertyShape ?sh:property}
132
- Path: [identifier] {+my:identifier ?sh:path}
133
- Or: [email, phone] {+my:email ?sh:or +my:phone ?sh:property}
134
-
135
- > Must have either email OR phone. {sh:message}
136
-
137
- **Exactly One/XOne Rule** {=my:ExclusiveShape-exactly .sh:PropertyShape ?sh:property}
138
- Path: [primaryContact] {+my:primaryContact ?sh:path}
139
- Xone: [email, phone] {+my:email ?sh:xone +my:phone ?sh:property}
140
-
141
- > Must have exactly one primary contact method. {sh:message}
142
-
143
- ## Test Data
144
-
145
- ### Valid Contact {=my:valid-contact .my:Person label}
146
-
147
- Email: [contact@example.com] {my:email}
148
- Phone: [555-1234] {my:phone}
149
- Primary contact: [email] {my:primaryContact}
150
-
151
- ### Invalid Contact {=my:invalid-contact .my:Person label}
152
-
153
- Phone: [555-5678] {my:phone}
154
- Primary contact: [email] {my:primaryContact}
155
-
156
- This demonstrates:
157
- - NodeShape targeting with sh:targetClass
158
- - PropertyShape constraints (datatype, min/max, patterns)
159
- - Logical constraints (sh:or, sh:xone, sh:in)
160
- - Self-validating examples with clear violations
161
- - Complex validation scenarios
@@ -1,58 +0,0 @@
1
- [cassini] <https://nasa.gov/cassini/>
2
- [xsd] <http://www.w3.org/2001/XMLSchema#>
3
-
4
- # Cassini-Huygens Mission {=cassini:mission .prov:Activity label}
5
-
6
- > Cassini-Huygens was a joint NASA/ESA/ASI mission to Saturn, running from launch in 1997 to a deliberate atmospheric entry in 2017. {comment}
7
-
8
- Over nearly two decades it reshaped our understanding of the ringed planet, its moons, and the potential for life in the outer solar system. This document traces the mission's major phases as a provenance chain, with the spacecraft's modules modelled as the agents responsible for each phase of science.
9
-
10
- ## Spacecraft Modules {=cassini:spacecraft .prov:Entity label}
11
-
12
- The spacecraft comprised two largely independent systems that separated after arrival at Saturn.
13
-
14
- ### Cassini Orbiter {=cassini:orbiter .prov:Agent label}
15
-
16
- Built by NASA's Jet Propulsion Laboratory, it spent thirteen years in Saturn orbit carrying twelve science instruments. Its mass was [2,523] {cassini:massKg ^^xsd:decimal} kg at launch and it was operated by [JPL] {+cassini:jpl ?prov:actedOnBehalfOf .prov:Organization label}.
17
-
18
- ### Huygens Probe {=cassini:huygens .prov:Agent label}
19
-
20
- An ESA-built atmospheric entry vehicle designed for a single-use descent through Titan's thick nitrogen atmosphere. It carried [six] {cassini:instrumentCount ^^xsd:integer} dedicated instruments and acted on behalf of [ESA] {+cassini:esa ?prov:actedOnBehalfOf .prov:Organization label}.
21
-
22
- ## Mission Timeline
23
-
24
- The mission unfolded in four major phases, each building on the last through a clean provenance chain.
25
-
26
- ### Launch and Cruise {=cassini:launch-cruise .prov:Activity label}
27
-
28
- Cassini lifted off on [1997-10-15T08:43:00Z] {prov:startedAtTime ^^xsd:dateTime} and spent seven years on a gravity-assist trajectory through the inner solar system. The [Cassini orbiter] {+cassini:orbiter ?prov:wasAssociatedWith} and [Huygens probe] {+cassini:huygens ?prov:wasAssociatedWith} traveled together. The cruise ended on [2004-07-01T02:12:00Z] {prov:endedAtTime ^^xsd:dateTime} when the main engine fired for Saturn Orbit Insertion, producing the [Saturn approach dataset] {+cassini:cruise-data .prov:Entity ?prov:generated label} — dust measurements, solar wind readings, and the first distant imaging of the Saturn system.
29
-
30
- ### Saturn Orbit Insertion {=cassini:soi .prov:Activity ?prov:wasInformedBy label}
31
-
32
- The engine burn on [2004-07-01T02:12:00Z] {prov:startedAtTime ^^xsd:dateTime} lasting 96 minutes placed Cassini into Saturn orbit. It ended at [2004-07-01T03:48:00Z] {prov:endedAtTime ^^xsd:dateTime}. The [Cassini orbiter] {+cassini:orbiter ?prov:wasAssociatedWith} executed the manoeuvre autonomously. This generated the [initial ring-crossing observations] {+cassini:ring-crossing-data .prov:Entity ?prov:generated label} — the first in-situ measurements of ring particle composition.
33
-
34
- ### Huygens Titan Descent {=cassini:titan-descent .prov:Activity ?prov:wasInformedBy label}
35
-
36
- The Huygens probe was released on [2004-12-25] {prov:startedAtTime ^^xsd:date} and entered Titan's atmosphere on [2005-01-14T09:10:00Z] {prov:endedAtTime ^^xsd:dateTime}. The [Huygens probe] {+cassini:huygens ?prov:wasAssociatedWith} descended for 72 minutes through hydrocarbon haze, producing the [Titan atmosphere profile] {+cassini:titan-atmos-data .prov:Entity ?prov:generated label} — temperature, pressure, and wind measurements from 1,270 km altitude down to the surface, along with the first images of Titan's surface from inside the atmosphere.
37
-
38
- ### Extended Orbital Science {=cassini:orbital-science .prov:Activity ?prov:wasInformedBy label}
39
-
40
- The Cassini orbiter conducted [294] {cassini:titanFlybys ^^xsd:integer} Titan flybys and numerous close encounters with Enceladus, Iapetus, and Rhea from [2004-07-01] {prov:startedAtTime ^^xsd:date} through [2017-09-15] {prov:endedAtTime ^^xsd:date}. The [Cassini orbiter] {+cassini:orbiter ?prov:wasAssociatedWith} generated the [Enceladus plume dataset] {+cassini:enceladus-data .prov:Entity ?prov:generated label} during six dedicated low-altitude passes through the southern polar geysers.
41
-
42
- ## Key Findings
43
-
44
- Two results stood out above all others and are elevated here as the mission's golden graph — the facts everything else builds toward.
45
-
46
- ## Enceladus Hosts a Subsurface Ocean {=cassini:stmt-ocean .rdf:Statement .prov:Entity label}
47
-
48
- **The Enceladus plume dataset** {+cassini:enceladus-data ?rdf:subject} *confirmed* {+cassini:hasSubsurfaceOcean ?rdf:predicate} **a global liquid water ocean beneath its ice shell** {+cassini:enceladus-ocean ?rdf:object}.
49
- Generated by: [Extended Orbital Science] {+cassini:orbital-science ?prov:wasGeneratedBy}
50
- Derived from: [Saturn Orbit Insertion] {+cassini:soi ?prov:wasDerivedFrom}
51
- Established: [2014-04-03T00:00:00Z] {prov:generatedAtTime ^^xsd:dateTime}
52
-
53
- ## Titan Has a Methane Hydrological Cycle {=cassini:stmt-methane .rdf:Statement .prov:Entity label}
54
-
55
- **The Titan atmosphere profile** {+cassini:titan-atmos-data ?rdf:subject} *revealed* {+cassini:hasMethaneHydrologicalCycle ?rdf:predicate} **a full methane rain-lake-evaporation cycle on Titan's surface** {+cassini:titan-methane-cycle ?rdf:object}.
56
- Generated by: [Huygens Titan Descent] {+cassini:titan-descent ?prov:wasGeneratedBy}
57
- Derived from: [Saturn Orbit Insertion] {+cassini:soi ?prov:wasDerivedFrom}
58
- Established: [2005-01-14T00:00:00Z] {prov:generatedAtTime ^^xsd:dateTime}
@@ -1,175 +0,0 @@
1
- [rdf] <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
2
- [rdfs] <http://www.w3.org/2000/01/rdf-schema#>
3
- [xsd] <http://www.w3.org/2001/XMLSchema#>
4
- [prov] <http://www.w3.org/ns/prov#>
5
- [sh] <http://www.w3.org/ns/shacl#>
6
- [my] <tag:alice@example.com,2026:>
7
-
8
- # Task Management System {=my:taskSystem .rdfs:Resource label}
9
-
10
- Comprehensive task management combining multiple W3C ontologies for real-world workflow automation.
11
-
12
- ## Ontology Foundation
13
-
14
- ### User Class {=my:User .rdfs:Class label}
15
-
16
- A user is a person who can be assigned tasks and projects.
17
-
18
- Subclass of: [Person] {+rdfs:Person ?rdfs:subClassOf}
19
-
20
- Properties:
21
- - **Name**: [string] {+xsd:string ?rdfs:range}
22
- - **Email**: [string] {+xsd:string ?rdfs:range}
23
- - **Active**: [boolean] {+xsd:boolean ?rdfs:range}
24
- - **Created**: [dateTime] {+xsd:dateTime ?rdfs:range}
25
-
26
- ### Task Class {=my:Task .rdfs:Class label}
27
-
28
- A task represents work to be completed with status and priority.
29
-
30
- Subclass of: [Entity] {+rdfs:Resource ?rdfs:subClassOf}
31
-
32
- Properties:
33
- - **Title**: [string] {+xsd:string ?rdfs:range}
34
- - **Description**: [string] {+xsd:string ?rdfs:range}
35
- - **Status**: [string] {+xsd:string ?rdfs:range}
36
- - **Priority**: [integer] {+xsd:integer ?rdfs:range}
37
- - **Due Date**: [dateTime] {+xsd:dateTime ?rdfs:range}
38
- - **Assigned To**: [User] {+my:User ?rdfs:range}
39
-
40
- ### Project Class {=my:Project .rdfs:Class label}
41
-
42
- A project contains multiple related tasks with timelines and goals.
43
-
44
- Subclass of: [Entity] {+rdfs:Resource ?rdfs:subClassOf}
45
-
46
- Properties:
47
- - **Name**: [string] {+xsd:string ?rdfs:range}
48
- - **Start Date**: [date] {+xsd:date ?rdfs:range}
49
- - **End Date**: [date] {+xsd:date ?rdfs:range}
50
- - **Status**: [string] {+xsd:string ?rdfs:range}
51
- - **Budget**: [decimal] {+xsd:decimal ?rdfs:range}
52
-
53
- ## Instance Data with Provenance
54
-
55
- ### Project Alpha {=my:project-alpha .my:Project label}
56
-
57
- Name: [Website Redesign] {rdfs:label}
58
- Start date: [2026-06-01] {my:startDate ^^xsd:date}
59
- End date: [2026-08-31] {my:endDate ^^xsd:date}
60
- Budget: [50000.00] {my:budget ^^xsd:decimal}
61
- Status: [active] {my:status}
62
-
63
- **Project Creation Activity** {=my:project-creation .prov:Activity label}
64
- - Started: [2026-05-15T09:00:00Z] {prov:startedAtTime ^^xsd:dateTime}
65
- - Associated with: [Project Manager] {+my:project-manager .prov:Person ?prov:wasAssociatedWith}
66
- - Used: [Requirements Document] {+my:requirements ?prov:used}
67
- - Generated: [Project Alpha] {+my:project-alpha ?prov:generated}
68
-
69
- ### Task Instances
70
-
71
- #### Design Task {=my:task-design .my:Task label}
72
-
73
- Title: [Design Homepage Layout] {rdfs:label}
74
- Description: [Create responsive design for main website pages] {my:description}
75
- Status: [in-progress] {my:status}
76
- Priority: [1] {my:priority ^^xsd:integer}
77
- Due date: [2026-06-15T17:00:00Z] {my:dueDate ^^xsd:dateTime}
78
- Assigned to: [Alice Johnson] {+my:alice .my:User ?my:assignedTo}
79
-
80
- **Task Assignment Activity** {=my:task-assignment .prov:Activity label}
81
- - Started: [2026-06-01T10:00:00Z] {prov:startedAtTime ^^xsd:dateTime}
82
- - Associated with: [Alice Johnson] {+my:alice ?prov:wasAssociatedWith}
83
- - Used: [Design Task] {+my:task-design ?prov:used}
84
- - Generated: [Task Assignment Record] {+my:assignment-record ?prov:generated}
85
-
86
- #### Development Task {=my:task-dev .my:Task label}
87
-
88
- Title: [Implement Homepage Backend] {rdfs:label}
89
- Description: [Build API endpoints and database schema for homepage] {my:description}
90
- Status: [todo] {my:status}
91
- Priority: [2] {my:priority ^^xsd:integer}
92
- Due date: [2026-06-30T17:00:00Z] {my:dueDate ^^xsd:dateTime}
93
- Assigned to: [Bob Smith] {+my:bob .my:User ?my:assignedTo}
94
-
95
- #### Testing Task {=my:task-test .my:Task label}
96
-
97
- Title: [Test Homepage Functionality] {rdfs:label}
98
- Description: [Comprehensive testing of all homepage features] {my:description}
99
- Status: [todo] {my:status}
100
- Priority: [3] {my:priority ^^xsd:integer}
101
- Due date: [2026-07-15T17:00:00Z] {my:dueDate ^^xsd:dateTime}
102
- Assigned to: [Carol Davis] {+my:carol .my:User ?my:assignedTo}
103
-
104
- ## SHACL Validation Shapes
105
-
106
- ### User Validation Shape {=my:UserShape .sh:NodeShape label}
107
-
108
- Validates all [User] {+my:User ?sh:targetClass} instances.
109
-
110
- **Name Constraint** {=my:UserShape-name .sh:PropertyShape ?sh:property}
111
- Path: [name] {+rdfs:label ?sh:path}
112
- Required: [1] {sh:minCount ^^xsd:integer sh:maxCount ^^xsd:integer}
113
- Datatype: [string] {+xsd:string ?sh:datatype}
114
-
115
- > User must have exactly one name. {sh:message}
116
-
117
- **Email Constraint** {=my:UserShape-email .sh:PropertyShape ?sh:property}
118
- Path: [email] {+my:email ?sh:path}
119
- Required: [1] {sh:minCount ^^xsd:integer}
120
- Pattern: [.*@.*] {sh:pattern}
121
-
122
- > User must have valid email address. {sh:message}
123
-
124
- ### Task Validation Shape {=my:TaskShape .sh:NodeShape label}
125
-
126
- Validates all [Task] {+my:Task ?sh:targetClass} instances.
127
-
128
- **Status Constraint** {=my:TaskShape-status .sh:PropertyShape ?sh:property}
129
- Path: [status] {+my:status ?sh:path}
130
- Required: [1] {sh:minCount ^^xsd:integer}
131
- In: [todo, in-progress, done, blocked] {+my:status-values ?sh:in}
132
-
133
- > Task status must be one of: todo, in-progress, done, blocked. {sh:message}
134
-
135
- **Priority Constraint** {=my:TaskShape-priority .sh:PropertyShape ?sh:property}
136
- Path: [priority] {+my:priority ?sh:path}
137
- Required: [1] {sh:minCount ^^xsd:integer}
138
- Datatype: [integer] {+xsd:integer ?sh:datatype}
139
- Minimum: [1] {sh:minInclusive ^^xsd:integer}
140
- Maximum: [5] {sh:maxInclusive ^^xsd:integer}
141
-
142
- > Task priority must be between 1 and 5. {sh:message}
143
-
144
- ## Test Data for Validation
145
-
146
- ### Valid User {=my:valid-user .my:User label}
147
-
148
- Name: [Alice Johnson] {rdfs:label}
149
- Email: [alice@example.com] {my:email}
150
- Active: [true] {my:active ^^xsd:boolean}
151
-
152
- ### Invalid User {=my:invalid-user .my:User label}
153
-
154
- Name: [Bob] {rdfs:label}
155
- Email: [invalid-email] {my:email}
156
-
157
- ### Valid Task {=my:valid-task .my:Task label}
158
-
159
- Title: [Complete Documentation] {rdfs:label}
160
- Status: [done] {my:status}
161
- Priority: [2] {my:priority ^^xsd:integer}
162
- Due date: [2026-06-30T17:00:00Z] {my:dueDate ^^xsd:dateTime}
163
-
164
- ### Invalid Task {=my:invalid-task .my:Task label}
165
-
166
- Title: [Invalid Task] {rdfs:label}
167
- Status: [cancelled] {my:status}
168
- Priority: [6] {my:priority ^^xsd:integer}
169
-
170
- This comprehensive example demonstrates:
171
- - **RDF/RDFS**: Class definitions, property domains/ranges, subclass relationships
172
- - **XSD**: Typed literals for dates, numbers, strings, booleans
173
- - **PROV-O**: Complete provenance chains for project and task creation
174
- - **SHACL**: Validation shapes with constraints and test data
175
- - **Integration**: All ontologies working together in real task management scenario
@@ -1,91 +0,0 @@
1
- [xsd] <http://www.w3.org/2001/XMLSchema#>
2
- [my] <tag:alice@example.com,2026:>
3
-
4
- # XSD Datatypes Demo {=my:xsd-demo .prov:Entity label}
5
-
6
- Demonstrates proper use of XSD datatypes in MD-LD annotations.
7
-
8
- ## String Datatypes
9
-
10
- ### Plain String
11
- Title: [Data Types Demo] {my:title}
12
-
13
- ### Language-Tagged String
14
- Description: [This example shows language tagging] {my:description @en}
15
- Description: [Este ejemplo muestra etiquetado de idioma] {my:description @es}
16
- Description: [Cet exemple montre l'étiquetage de langue] {my:description @fr}
17
-
18
- ## Numeric Datatypes
19
-
20
- ### Integer
21
- Count: [42] {my:count ^^xsd:integer}
22
- Year: [2026] {my:year ^^xsd:gYear}
23
- Month: [5] {my:month ^^xsd:gMonth}
24
- Day: [6] {my:day ^^xsd:gDay}
25
-
26
- ### Decimal
27
- Price: [19.99] {my:price ^^xsd:decimal}
28
- Percentage: [87.5] {my:percentage ^^xsd:decimal}
29
- Ratio: [3.14159] {my:ratio ^^xsd:decimal}
30
-
31
- ## Temporal Datatypes
32
-
33
- ### Date
34
- Created: [2026-05-06] {my:created ^^xsd:date}
35
- Birthday: [1990-12-25] {my:birthday ^^xsd:date}
36
-
37
- ### DateTime
38
- Started: [2026-05-06T14:30:00Z] {my:startedAt ^^xsd:dateTime}
39
- Deadline: [2026-12-31T23:59:59Z] {my:deadline ^^xsd:dateTime}
40
-
41
- ### Time
42
- Meeting time: [09:30:00] {my:meetingTime ^^xsd:time}
43
- Duration: [02:45:00] {my:duration ^^xsd:time}
44
-
45
- ### Duration
46
- Project duration: [P1Y2M3DT4H30M] {my:projectDuration ^^xsd:duration}
47
- Sprint length: [P2W] {my:sprintLength ^^xsd:duration}
48
-
49
- ## Boolean and Binary
50
-
51
- ### Boolean
52
- Active: [true] {my:isActive ^^xsd:boolean}
53
- Completed: [false] {my:isCompleted ^^xsd:boolean}
54
- Available: [1] {my:isAvailable ^^xsd:boolean}
55
-
56
- ## Specialized Types
57
-
58
- ### URI/IRI
59
- Website: [https://example.com] {my:website}
60
- Identifier: [urn:isbn:978-3-16-148410-0] {my:isbn}
61
-
62
- ### Base64 Binary
63
- Avatar data: [SGVsbG8gdG8gdGVuIGRhdGE=] {my:avatar ^^xsd:base64Binary}
64
-
65
- ## Real-World Example
66
-
67
- ### Product Catalog Entry {=my:product .prov:Entity label}
68
-
69
- Name: [Wireless Headphones] {my:title}
70
- SKU: [WH-1000] {my:sku ^^xsd:string}
71
- Price: [$79.99] {my:price ^^xsd:decimal}
72
- Weight: [0.25] {my:weight ^^xsd:decimal}
73
- In stock: [true] {my:inStock ^^xsd:boolean}
74
- Release date: [2026-06-15] {my:releaseDate ^^xsd:date}
75
- Last updated: [2026-05-06T09:15:00Z] {my:lastUpdated ^^xsd:dateTime}
76
-
77
- ### Customer Order {=my:order .prov:Activity label}
78
-
79
- Order ID: [ORD-2026-0542] {my:orderId ^^xsd:string}
80
- Order date: [2026-05-06] {my:orderDate ^^xsd:date}
81
- Total amount: [158.97] {my:totalAmount ^^xsd:decimal}
82
- Priority shipping: [false] {my:priorityShipping ^^xsd:boolean}
83
- Estimated delivery: [2026-05-08T14:00:00Z] {my:estimatedDelivery ^^xsd:dateTime}
84
-
85
- This demonstrates comprehensive XSD datatype usage for:
86
- - Text with language tags
87
- - Various numeric formats
88
- - Complete temporal coverage
89
- - Boolean flags
90
- - Specialized binary/URI types
91
- - Real-world business scenarios