-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
66 lines (33 loc) · 1.41 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Setup
Configuration is kept in the file ../conf.js, this includes:
* The URI for the base LDP container.
* The URI for the WSI (Workset Services Index)
* Default URIs for Target WorkSet and Target Fragment
To create a WSI, set the base in conf.js and use:
node create-wsi
# Match services
## Key Match service
To create matches for all fragment in a workset run as:
node keymatch.js ALL <workset-uri>
To run just one added fragment:
node keymatch.js <workset-uri> <target-fragment>
## Length Match service
To create matches for all fragment in a workset run as:
node lengthmatch.js ALL <workset-uri>
To run just one added fragment:
node lengthmatch.js <workset-uri> <target-fragment>
## Instrument Match service
To create matches for all fragments that are playable by an instrument:
node instrumentmatch.js <workset-uri> <instrument-uri>
## Script to run all services on a workset
Run all services:
./runMatchAgents.sh <workset-uri> [optional_instrument_uri_file]
# Utilities
* To fetch FragRefs from a container and resolve them to a list of Fragments:
node listfrags WORKSET-URI
* Utility to remove all items from an LDP container:
node emptycontainer CONTAINER-URI
* Find an annotation matching TARGET in CONTAINER
node findAnn CONTAINER-URI TARGET-URI
* Find matches in a MatchService container (dealing with recursion on a motivation of ninre:seeHere):
node findMatches CONTAINER-URI TARGET-URI