eyemind 0.8.42 → 0.8.43

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/LS-SPEC.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```text
4
4
  Title: The Logic Script (LS) Language and Proof Format
5
- Version: eyemind 0.8.42
5
+ Version: eyemind 0.8.43
6
6
  ```
7
7
 
8
8
  This document specifies Logic Script (LS): the syntax and meaning of its
package/README.md CHANGED
@@ -13,7 +13,7 @@ program, a JavaScript library and a browser application.
13
13
  - [Playground](https://eyereasoner.github.io/eyemind/playground/): run any
14
14
  example or your own program in the browser, with its proof and check report.
15
15
  - [Examples](https://eyereasoner.github.io/eyemind/examples/): the
16
- 164 runnable programs, each with a card deck and saved conclusions; all but
16
+ 165 runnable programs, each with a card deck and saved conclusions; all but
17
17
  the two streamed examples also save proofs and check reports.
18
18
  - [Specification](https://eyereasoner.github.io/eyemind/LS-SPEC): the
19
19
  language, the proof format and how a proof is checked.
@@ -407,7 +407,10 @@ query(rdf(O, iri('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'), sosa('Obser
407
407
  units: with `qudt:conversionMultiplier` and `qudt:hasDimensionVector`,
408
408
  composed from QUDT units with `qudt:hasFactorUnit` and an optional
409
409
  `qudt:factorUnitScalar`, derived from `qudt:prefix` and `qudt:scalingOf`,
410
- or aligned with `owl:sameAs` or `skos:exactMatch`. The
410
+ or aligned with `owl:sameAs` or `skos:exactMatch`, which are symmetric and
411
+ read in either direction, or with `qconv:alignedQudtUnit` from the local
412
+ unit to the QUDT one; a local `qudt:symbol` or `qudt:ucumCode` then names
413
+ the unit in a CDT literal. The
411
414
  other units of the QUDT unit vocabulary with a fixed conversion, such as
412
415
  `unit:W-PER-M2`, come from an offline catalog that `tools/qudt-catalog.js`
413
416
  generates from a QUDT release, also by the UCUM code of a CDT literal. A
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyemind",
3
- "version": "0.8.42",
3
+ "version": "0.8.43",
4
4
  "description": "A dependency-free Logic Script (LS) reasoner with forward and backward reasoning, checkable proofs, and RDF 1.2, Notation3 (N3), SPARQL 1.2 RL (SRL) and Logical English (LE) interoperability.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/qudt.js CHANGED
@@ -97,6 +97,11 @@ implied_by(qu_align(U, U, G), qu_dimension(U, G, _));
97
97
  for (const p of [iri('${SAME_AS}'), iri('${EXACT_MATCH}'), qc('alignedQudtUnit')]) {
98
98
  implied_by(qu_align(Local, U, G), [rdf(Local, p, U, G), qu_dimension(U, G, _)]);
99
99
  }
100
+ // owl:sameAs and skos:exactMatch are symmetric, so a known unit can name its
101
+ // local alias without --owl2rl or --skos; qconv:alignedQudtUnit is directed.
102
+ for (const p of [iri('${SAME_AS}'), iri('${EXACT_MATCH}')]) {
103
+ implied_by(qu_align(Local, U, G), [rdf(U, p, Local, G), qu_dimension(U, G, _)]);
104
+ }
100
105
  implied_by(qu_custom_profile(P, G), ent_base(P, qc('targetUnit'), _, G));
101
106
  implied_by(qu_profile(P, DT, U, Code, G), [qu_builtin_profile(P, DT, U, Code), not(qu_custom_profile(P, G))]);
102
107
  implied_by(qu_profile(P, DT, U, Code, G), [ent_base(P, qc('targetUnit'), U, G), ent_base(P, qc('datatype'), iri(DT), G), ent_base(P, qc('targetUcumCode'), L, G), srl_str(L, literal(Code, datatype(quString)))]);
package/src/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // The release this checkout is; ./release keeps it in step with package.json.
2
- export const VERSION = '0.8.42';
2
+ export const VERSION = '0.8.43';