Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/specs/guests/senses/senses.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"PrismSenses"
],
"dispatch": "PrismSenses::prismSensesDispatch",
"vectors": "spec:senses",
"vectors": "spec:senses+senses/observed",
"limits": [
3328,
12288,
Expand Down
4 changes: 2 additions & 2 deletions app/specs/guests/senses/senses.lock.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"source": "a467567e91ed21b471cab44a836fd0f353cbd2259e55d57ff3493097e1879265",
"wasm": "e31ae067109de3f64f30c481aebdd384664f5e5ebffa460cdb4e1f93f5c3d035"
"source": "1f642a35584f545a18c158111723c82f9515e3fdc724c40bc0a73acbf6d457ff",
"wasm": "e0e72093bda87dfe768d8725463591fe9283a30d4f59b5c3ddd6e658797a455f"
}
21 changes: 21 additions & 0 deletions app/specs/guests/turtle/turtle-eval-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "turtle-eval-2",
"wasm": "site/turtle/guest/turtle.wasm",
"pin": "site/turtle/guest.mjs",
"modules": [
"PrismSosaTable",
"PrismSenses"
],
"dispatch": "PrismSenses::prismTurtleDispatch",
"vectors": "spec:turtle/eval2",
"limits": [
6144,
16384,
12288
],
"memory": [
2048,
1048576
],
"as": "eval2"
}
4 changes: 4 additions & 0 deletions app/specs/guests/turtle/turtle-eval-2.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "75161b27e345ecc10eb4f00183dd014dc6023e6d7ff383089627cedf058b3136",
"wasm": "e97c6f77cd167b558984ed290bbae9054df06464f27bcb18bc9d631846c1265f"
}
21 changes: 21 additions & 0 deletions app/specs/guests/turtle/turtle-eval.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "turtle-eval",
"wasm": "site/turtle/guest/turtle.wasm",
"pin": "site/turtle/guest.mjs",
"modules": [
"PrismSosaTable",
"PrismSenses"
],
"dispatch": "PrismSenses::prismTurtleDispatch",
"vectors": "spec:turtle/eval",
"limits": [
6144,
16384,
12288
],
"memory": [
2048,
1048576
],
"as": "eval"
}
4 changes: 4 additions & 0 deletions app/specs/guests/turtle/turtle-eval.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "1013e0c638227af89698dce5e3f5f012751dec86a9338856787cbf06d84561ef",
"wasm": "e97c6f77cd167b558984ed290bbae9054df06464f27bcb18bc9d631846c1265f"
}
21 changes: 21 additions & 0 deletions app/specs/guests/turtle/turtle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "turtle",
"wasm": "site/turtle/guest/turtle.wasm",
"pin": "site/turtle/guest.mjs",
"modules": [
"PrismSosaTable",
"PrismSenses"
],
"dispatch": "PrismSenses::prismTurtleDispatch",
"vectors": "spec:turtle",
"limits": [
6144,
16384,
12288
],
"memory": [
2048,
1048576
],
"as": "turtle"
}
4 changes: 4 additions & 0 deletions app/specs/guests/turtle/turtle.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "124dd539c813c7b80c49da45a16263ef2c7544104e2030b517ee37fa6c0315a1",
"wasm": "e97c6f77cd167b558984ed290bbae9054df06464f27bcb18bc9d631846c1265f"
}
2 changes: 1 addition & 1 deletion app/specs/oracle/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
},
{
"kind": "the senses' observations",
"why": "The senses guest (app/src/PrismSenses.lex.tex) is held to W3C's SOSA ontology and the Recommendation's example graphs through its 'check' verb. Its 'observe' and 'flat' verbs, which answer the person's circumstances at a prompt, have no acceptance vector: no source gives the expected observations, and the model's own output is not an oracle. app/specs/senses/spec.json 'gaps' names the oracle each expected observation is to be derived from (IANA tz test data, RFC 3339, RFC 5545 at a pinned clock, RFC 6350, WHO ICF, Geolocation WPT)."
"why": "The senses guest (app/src/PrismSenses.lex.tex) is held to W3C's SOSA ontology and the Recommendation's example graphs through its 'check' verb, and its 'flat' verb to RFC 5545's own examples: given the RFC's events, it names the time zone and chooses the event under way and the next one at pinned clocks (app/specs/senses/observed/spec.json). No source verifies the rest yet: local time, identity, the functioning profile, place and location, and the N-Triples form of 'observe'. app/specs/senses/spec.json 'gaps' names the oracle each is to be derived from (IANA tz test data, RFC 3339, RFC 6350, WHO ICF, Geolocation)."
},
{
"kind": "a Web Annotation Set with no id",
Expand Down
3 changes: 3 additions & 0 deletions app/specs/parts/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@
"site/senses/guest.mjs": [
"how"
],
"site/turtle/guest.mjs": [
"how"
],
"app/src/PrismAnnotation.lex.tex": [
"why",
"when",
Expand Down
8 changes: 8 additions & 0 deletions app/specs/senses/clocks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"comment": "The clocks at which the senses' schedule observations are derived from RFC 5545's own examples (generators/senses, sensescases, writes app/specs/senses/observed/spec.json). 'base' is the person's IRI in the requests. Each clock is an RFC 3339 instant in UTC: the first falls inside the conference of RFC 5545 section 4's second example, the second in the hour before the party of section 3.4's example.",
"base": "https://example.com/me/",
"clocks": [
"1996-09-18T15:00:00Z",
"1997-07-14T16:00:00Z"
]
}
7 changes: 7 additions & 0 deletions app/specs/senses/observed/spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"comment": "Written by generators/senses (sensescases) from RFC 5545 at its pinned bytes and app/specs/senses/clocks.json: do not edit. Each example is a 'flat' request of the senses guest and its answer at one pinned clock. The time zone is the TZID of the RFC's VTIMEZONE example. The request holds, as 'held' lines, every VEVENT of the RFC's iCalendar objects that gives DTSTART and DTEND in UTC, with its UID, start and end as the RFC prints them, written as RFC 3339; the answer names the one under way at the clock and the next to begin, chosen here apart from the guest.",
"examples": [
["flat\nbase https://example.com/me/\nnow 1996-09-18T15:00:00Z\nzone America/New_York\nheld 1997-07-14T17:00:00Z 1997-07-15T04:00:00Z 19970610T172345Z-AF23B2@example.com\nheld 1996-09-18T14:30:00Z 1996-09-20T22:00:00Z uid1@example.com\nheld 1997-03-24T12:30:00Z 1997-03-24T21:00:00Z uid3@example.com\n", "timeZone America/New_York\nscheduleNow 1996-09-18T14:30:00Z/1996-09-20T22:00:00Z uid1@example.com\nscheduleNext 1997-03-24T12:30:00Z/1997-03-24T21:00:00Z uid3@example.com\n"],
["flat\nbase https://example.com/me/\nnow 1997-07-14T16:00:00Z\nzone America/New_York\nheld 1997-07-14T17:00:00Z 1997-07-15T04:00:00Z 19970610T172345Z-AF23B2@example.com\nheld 1996-09-18T14:30:00Z 1996-09-20T22:00:00Z uid1@example.com\nheld 1997-03-24T12:30:00Z 1997-03-24T21:00:00Z uid3@example.com\n", "timeZone America/New_York\nscheduleNext 1997-07-14T17:00:00Z/1997-07-15T04:00:00Z 19970610T172345Z-AF23B2@example.com\n"]
]
}
4 changes: 2 additions & 2 deletions app/specs/senses/spec.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "senses",
"comment": "The Prism's senses (app/src/PrismSenses.lex.tex) held to the W3C Semantic Sensor Network Ontology (SOSA/SSN, Recommendation 19 October 2017). 'ontology' pins sosa.ttl as W3C serves it; PrismSosaTable and ST-01's requirements for w3c-sosa-ssn are written from it (generators/standards). 'tests' lists the Recommendation's own example graphs this slice reads, each pinned by SHA-256 as W3C serves it under 'base', with the answer of 'check': 'conforms' and the number of triples, or the first refusal. A graph is refused when it is not Turtle, when it uses a term in the SOSA namespace that SOSA does not define, or when it uses a SOSA term against its declared kind (a class as a property, a datatype property with a resource, an object property with a literal). Eight of the Recommendation's examples are refused on those grounds (unbound prefix, a stray statement, sosa:hasSimplResult, sosa:actuationMadeBy, sosa:hasProperty, sosa:resultTime given a time:Instant): the ontology is the normative text and the examples are informative, so the ontology wins. What is Turtle and how many triples a graph has were cross-checked with an independent reader (rdflib 7.6.0) when this file was written. 'examples' carries those exact bytes as the guest's acceptance vectors after the verb line 'check'; nothing else is an acceptance vector. 'observe' answers the person's circumstances at a prompt as sosa:Observation s in N-Triples and 'flat' the same rows one per line, and every 'observe' answer passes this same 'check' before it is given; 'gaps' says why no case of those two verbs is counted as passing yet and shows their grammar. Not read yet: Turtle collections and local-name escapes, IRI dot segments, the SSN terms beyond SOSA, and om-20.ttl and dht22.ttl, which are larger than a request.",
"comment": "The Prism's senses (app/src/PrismSenses.lex.tex) held to the W3C Semantic Sensor Network Ontology (SOSA/SSN, Recommendation 19 October 2017). 'ontology' pins sosa.ttl as W3C serves it; PrismSosaTable and ST-01's requirements for w3c-sosa-ssn are written from it (generators/standards). 'tests' lists the Recommendation's own example graphs this slice reads, each pinned by SHA-256 as W3C serves it under 'base', with the answer of 'check': 'conforms' and the number of triples, or the first refusal. A graph is refused when it is not Turtle, when it uses a term in the SOSA namespace that SOSA does not define, or when it uses a SOSA term against its declared kind (a class as a property, a datatype property with a resource, an object property with a literal). Eight of the Recommendation's examples are refused on those grounds (unbound prefix, a stray statement, sosa:hasSimplResult, sosa:actuationMadeBy, sosa:hasProperty, sosa:resultTime given a time:Instant): the ontology is the normative text and the examples are informative, so the ontology wins. What is Turtle and how many triples a graph has were cross-checked with an independent reader (rdflib 7.6.0) when this file was written. 'examples' carries those exact bytes as the guest's acceptance vectors after the verb line 'check'. The guest's other acceptance vectors are app/specs/senses/observed/spec.json, written by generators/senses from RFC 5545 at its pinned bytes: 'flat' requests at the clocks of app/specs/senses/clocks.json that hold every event of the RFC's own examples as 'held' lines, answered by the time zone and by the event under way and the next to begin. A request may give its schedule as 'event' and 'next' lines or as any number of 'held' lines (start, end and id, the times in UTC to the second); from held lines the guest itself chooses the one under way at 'now', the earliest begun when several are, and the next to begin. 'observe' answers the person's circumstances at a prompt as sosa:Observation s in N-Triples and 'flat' the same rows one per line, and every 'observe' answer passes this same 'check' before it is given; 'gaps' says which of their rows no source verifies yet and shows their grammar. The Turtle reader itself is held to the W3C Turtle test suite (app/specs/turtle/spec.json). Not read yet: the SSN terms beyond SOSA, and om-20.ttl and dht22.ttl, which are larger than a request.",
"ontology": {
"url": "https://www.w3.org/ns/sosa/sosa.ttl",
"sha256": "c70b0d1c843c0047e4c98e0a89392e46a05752ff6365bda7f7f55303905a0392"
Expand Down Expand Up @@ -137,7 +137,7 @@
]
],
"gaps": {
"why": "No authoritative source gives the expected answer of 'observe' or 'flat': SOSA defines the terms an observation uses, not which observations a person's circumstances make. The cases under 'shape' show the request grammar and the answer this model gives; their answers are the model's own output, so they are not acceptance vectors and prove nothing. They become tests when each expected observation is derived from the oracle its input already has: local time and zone from the IANA tz test data and the RFC 3339 examples, the event in progress and the next one from the RFC 5545 examples at a pinned clock, identity from the RFC 6350 cards, the functioning profile from WHO's ICF release, location from the Geolocation web platform tests, with the SOSA shape held to the ontology on top.",
"why": "Verified from a source: the 'flat' rows timeZone, scheduleNow and scheduleNext, whose values app/specs/senses/observed/spec.json takes from RFC 5545's own examples at pinned clocks. That proves the guest chooses the event under way and the next one as the generator, written apart from it, does over the RFC's three events at two clocks, and carries their values through unchanged. Not verified by any source yet: the rows localTime (IANA tz test data and the RFC 3339 examples), identity (the RFC 6350 cards), functioningProfile (WHO's ICF release), place and location (no pinned source gives an example; W3C Geolocation is the candidate), and the N-Triples form of 'observe', whose terms the guest holds to the SOSA ontology but whose choice of observations no source gives. The cases under 'shape' show the request grammar and the answer this model gives for those; their answers are the model's own output, so they are not acceptance vectors and prove nothing.",
"shape": [
{
"request": "flat\nbase https://example.com/me/\nnow 1996-12-20T00:39:57Z\nlocal 1996-12-19T16:39:57-08:00\nzone America/New_York\nevent 1997-09-03T16:30:00Z 1997-09-03T19:00:00Z 19970901T130000Z-123401@example.com\nnext 1997-09-04T16:00:00Z 1997-09-04T17:00:00Z 19970901T130000Z-123402@example.com\nidentity sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad\nfunctioning sha256:248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1\nplace today\nposition 48.198634 16.371648 40\n",
Expand Down
41 changes: 37 additions & 4 deletions app/specs/standards/register/w3c-turtle-1.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,43 @@
"key": "w3c-turtle-1.1",
"title": "W3C RDF 1.1 Turtle, Recommendation 25 February 2014",
"issuer": "W3C",
"text": null,
"unpinned": "PrismSenses reads the Turtle of the SOSA/SSN Recommendation's examples (collections, local-name escapes and IRI dot segments are refused as not read yet) and writes N-Triples; its requirement inventory is the W3C Turtle test suite, which the next slice of the nervous system pins and runs",
"governs": [],
"text": {
"url": "https://www.w3.org/TR/2014/REC-turtle-20140225/",
"sha256": "f1ff33edbd9dbac6a472e001064ef70b4aee849972f3d8b5afa837b5f9cc6580"
},
"governs": [
"app/src/PrismSenses.lex.tex",
"site/turtle/guest.mjs"
],
"realizedBy": [
"ST-01"
]
],
"inventories": [
{
"generated": "test/standards/generated/w3c-turtle-1.1.jsonl",
"vendored": "app/specs/standards/upstream/turtle-manifest.ttl",
"source": {
"url": "https://www.w3.org/2013/TurtleTests/manifest.ttl",
"sha256": "3fd91f9e4bfad9b07ee9bfa41786744dc4c46c05838fc43da33f2cb8331c941c"
}
}
],
"enforcedByKind": {
"TestTurtleEval": {
"suite": "crates/conformance/tests/guests.rs",
"how": "every evaluation test of the W3C Turtle test suite, its files byte for byte as W3C serves them (app/specs/turtle/spec.json), is in an acceptance vector of the turtle guests, which answer pass only when the reader's verdict on each is the suite's; prismpm build runs them and GU-01 holds the pinned wasm to those vectors"
},
"TestTurtleNegativeEval": {
"suite": "crates/conformance/tests/guests.rs",
"how": "every negative evaluation test of the W3C Turtle test suite, its files byte for byte as W3C serves them (app/specs/turtle/spec.json), is in an acceptance vector of the turtle guests, which answer pass only when the reader's verdict on each is the suite's; prismpm build runs them and GU-01 holds the pinned wasm to those vectors"
},
"TestTurtleNegativeSyntax": {
"suite": "crates/conformance/tests/guests.rs",
"how": "every negative syntax test of the W3C Turtle test suite, its files byte for byte as W3C serves them (app/specs/turtle/spec.json), is in an acceptance vector of the turtle guests, which answer pass only when the reader's verdict on each is the suite's; prismpm build runs them and GU-01 holds the pinned wasm to those vectors"
},
"TestTurtlePositiveSyntax": {
"suite": "crates/conformance/tests/guests.rs",
"how": "every positive syntax test of the W3C Turtle test suite, its files byte for byte as W3C serves them (app/specs/turtle/spec.json), is in an acceptance vector of the turtle guests, which answer pass only when the reader's verdict on each is the suite's; prismpm build runs them and GU-01 holds the pinned wasm to those vectors"
}
}
}
Loading
Loading