@semiont/make-meaning 0.2.33 → 0.2.34-build.89
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/dist/index.d.ts +1 -2
- package/dist/index.js +5 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { JobWorker, JobQueue, AnyJob, DetectionResult, RunningJob, DetectionParams, DetectionProgress, GenerationResult, GenerationParams, GenerationProgress, HighlightDetectionResult, HighlightDetectionParams, HighlightDetectionProgress, AssessmentDetectionResult, AssessmentDetectionParams, AssessmentDetectionProgress, CommentDetectionResult, CommentDetectionParams, CommentDetectionProgress, TagDetectionResult, TagDetectionParams, TagDetectionProgress } from '@semiont/jobs';
|
|
2
2
|
import { EventStore } from '@semiont/event-sourcing';
|
|
3
3
|
import { RepresentationStore } from '@semiont/content';
|
|
4
|
-
import { EnvironmentConfig, ResourceId, StoredEvent, CreationMethod, UserId, ResourceAnnotations, AnnotationId, AnnotationCategory, GraphPath, GraphConnection } from '@semiont/core';
|
|
4
|
+
import { EnvironmentConfig, components, ResourceId, StoredEvent, CreationMethod, UserId, AnnotationUri, ResourceAnnotations, AnnotationId, AnnotationCategory, GraphPath, GraphConnection, GenerationContext } from '@semiont/core';
|
|
5
5
|
import { InferenceClient } from '@semiont/inference';
|
|
6
6
|
import { GraphDatabase } from '@semiont/graph';
|
|
7
|
-
import { components, AnnotationUri, GenerationContext } from '@semiont/api-client';
|
|
8
7
|
|
|
9
8
|
/**
|
|
10
9
|
* Reference Detection Worker
|
package/dist/index.js
CHANGED
|
@@ -11,11 +11,7 @@ import { getGraphDatabase } from "@semiont/graph";
|
|
|
11
11
|
import { JobWorker } from "@semiont/jobs";
|
|
12
12
|
import { generateAnnotationId } from "@semiont/event-sourcing";
|
|
13
13
|
import { resourceIdToURI } from "@semiont/core";
|
|
14
|
-
import {
|
|
15
|
-
getPrimaryRepresentation,
|
|
16
|
-
decodeRepresentation,
|
|
17
|
-
validateAndCorrectOffsets
|
|
18
|
-
} from "@semiont/api-client";
|
|
14
|
+
import { getPrimaryRepresentation, decodeRepresentation, validateAndCorrectOffsets } from "@semiont/api-client";
|
|
19
15
|
|
|
20
16
|
// src/detection/entity-extractor.ts
|
|
21
17
|
async function extractEntities(exact, entityTypes, client, includeDescriptiveReferences = false) {
|
|
@@ -566,12 +562,8 @@ Format as a simple list, one suggestion per line.`;
|
|
|
566
562
|
}
|
|
567
563
|
|
|
568
564
|
// src/jobs/generation-worker.ts
|
|
569
|
-
import {
|
|
570
|
-
|
|
571
|
-
getExactText,
|
|
572
|
-
resourceUri,
|
|
573
|
-
annotationUri
|
|
574
|
-
} from "@semiont/api-client";
|
|
565
|
+
import { resourceUri, annotationUri } from "@semiont/core";
|
|
566
|
+
import { getTargetSelector, getExactText } from "@semiont/api-client";
|
|
575
567
|
import { getEntityTypes } from "@semiont/ontology";
|
|
576
568
|
import {
|
|
577
569
|
CREATION_METHODS,
|
|
@@ -1718,7 +1710,7 @@ import { EventQuery } from "@semiont/event-sourcing";
|
|
|
1718
1710
|
import { didToAgent } from "@semiont/core";
|
|
1719
1711
|
import { resourceId as makeResourceId, findBodyItem } from "@semiont/core";
|
|
1720
1712
|
import { toResourceUri, toAnnotationUri } from "@semiont/event-sourcing";
|
|
1721
|
-
import { resourceUri as resourceUri2 } from "@semiont/
|
|
1713
|
+
import { resourceUri as resourceUri2 } from "@semiont/core";
|
|
1722
1714
|
var GraphDBConsumer = class {
|
|
1723
1715
|
constructor(config, eventStore, graphDb) {
|
|
1724
1716
|
this.config = config;
|
|
@@ -2382,10 +2374,7 @@ var ResourceOperations = class {
|
|
|
2382
2374
|
|
|
2383
2375
|
// src/annotation-operations.ts
|
|
2384
2376
|
import { generateAnnotationId as generateAnnotationId6 } from "@semiont/event-sourcing";
|
|
2385
|
-
import {
|
|
2386
|
-
getTextPositionSelector as getTextPositionSelector2,
|
|
2387
|
-
getTargetSource as getTargetSource2
|
|
2388
|
-
} from "@semiont/api-client";
|
|
2377
|
+
import { getTextPositionSelector as getTextPositionSelector2, getTargetSource as getTargetSource2 } from "@semiont/api-client";
|
|
2389
2378
|
import { annotationId as annotationId2, uriToResourceId as uriToResourceId2, uriToAnnotationId } from "@semiont/core";
|
|
2390
2379
|
|
|
2391
2380
|
// src/annotation-context.ts
|