@etrog/wordnet 1.0.0 → 1.0.1

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 (2) hide show
  1. package/README.md +27 -0
  2. package/package.json +8 -1
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @etrog/wordnet
2
+
3
+ [Open English WordNet](https://en-word.net/) / [GWA](https://globalwordnet.github.io/schemas/) reader for the [Etrog](https://github.com/dsifriend/etrog) Linguistic Linked Open Data library.
4
+
5
+ Parses Global WordNet Association (GWA) RDF/JSON-LD dumps and maps them to the `@etrog/core` data model — synsets as `LexicalConcept` instances, senses as `LexicalSense`, and synset relations (hypernymy, hyponymy, meronymy, …) as `vartrans:ConceptualRelation` nodes. Uses `@etrog/rdf` under the hood for format parsing.
6
+
7
+ ## Installation
8
+
9
+ ```sh
10
+ npm install @etrog/wordnet
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { parseWordNet } from "@etrog/wordnet";
17
+
18
+ const lexicon = await parseWordNet(jsonldDocument);
19
+ ```
20
+
21
+ ## Documentation
22
+
23
+ See the [Etrog monorepo README](https://github.com/dsifriend/etrog#readme) for architecture and JSON-LD strategy details, including the relationship to the GWA WordNet JSON-LD context.
24
+
25
+ ## License
26
+
27
+ MIT
package/package.json CHANGED
@@ -1,7 +1,14 @@
1
1
  {
2
2
  "name": "@etrog/wordnet",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "type": "module",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/dsifriend/etrog.git",
9
+ "directory": "packages/wordnet"
10
+ },
11
+ "homepage": "https://github.com/dsifriend/etrog#readme",
5
12
  "main": "./dist/index.js",
6
13
  "types": "./dist/index.d.ts",
7
14
  "files": [