eyeling 1.8.7 → 1.8.9
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/examples/annotation.n3 +8 -0
- package/examples/collection.n3 +4 -0
- package/examples/context-association.n3 +33 -0
- package/examples/input/annotation.ttl +4 -0
- package/examples/input/collection.ttl +13 -0
- package/examples/input/context-association.trig +35 -0
- package/examples/input/reifies.ttl +8 -0
- package/examples/input/triple-term.ttl +7 -0
- package/examples/it-is-about-time.n3 +565 -14
- package/examples/output/annotation.n3 +0 -0
- package/examples/output/collection.n3 +0 -0
- package/examples/output/context-association.n3 +0 -0
- package/examples/output/it-is-about-time.n3 +0 -7
- package/examples/output/reifies.n3 +0 -0
- package/examples/output/triple-term.n3 +0 -0
- package/examples/reifies.n3 +8 -0
- package/examples/snaf.n3 +4 -16
- package/examples/triple-term.n3 +7 -0
- package/eyeling-builtins.ttl +0 -23
- package/eyeling.js +0 -350
- package/index.js +4 -0
- package/n3.js +2083 -0
- package/package.json +5 -3
- package/test/api.test.js +60 -2
- package/test/n3.test.js +221 -0
- package/examples/bind.n3 +0 -7
- package/examples/bind.srl +0 -12
- package/examples/family.n3 +0 -10
- package/examples/family.srl +0 -12
- package/examples/filter.n3 +0 -8
- package/examples/filter.srl +0 -9
- package/examples/it-is-about-time.srl +0 -36
- package/examples/output/bind.n3 +0 -3
- package/examples/output/family.n3 +0 -13
- package/examples/output/filter.n3 +0 -3
- package/examples/snaf.srl +0 -6
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@prefix : <http://example.com/> .
|
|
2
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
3
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
4
|
+
|
|
5
|
+
:a :name "Alice" .
|
|
6
|
+
:t rdf:reifies { :a :name "Alice" . } .
|
|
7
|
+
:t :statedBy :bob .
|
|
8
|
+
:t :recorded "2021-07-07"^^xsd:date .
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@prefix rt: <urn:return#> .
|
|
2
|
+
@prefix : <http://example.org/#> .
|
|
3
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
|
4
|
+
@prefix sec: <https://w3id.org/security#> .
|
|
5
|
+
@prefix skolem: <https://eyereasoner.github.io/.well-known/genid/5649fff4-464d-5969-88ed-956a6b5f0d90#> .
|
|
6
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
7
|
+
|
|
8
|
+
skolem:g0 rt:graph {
|
|
9
|
+
:Bob foaf:name "Bob" .
|
|
10
|
+
} .
|
|
11
|
+
|
|
12
|
+
skolem:g1 rt:graph {
|
|
13
|
+
skolem:g0 sec:proof _:dataSignature .
|
|
14
|
+
_:signature1 a sec:DataIntegrityProof .
|
|
15
|
+
_:signature1 sec:cryptosuite "ecdsa-rdfc-2019" .
|
|
16
|
+
_:signature1 sec:created "2021-11-13T18:19:39Z" .
|
|
17
|
+
_:signature1 sec:verificationMethod "https://university.example/issuers/14#key-1" .
|
|
18
|
+
_:signature1 sec:proofPurpose "assertionMethod" .
|
|
19
|
+
_:signature1 sec:proofValue "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz" .
|
|
20
|
+
_:signature1 sec:issuer <https://university.example/issuers/14> .
|
|
21
|
+
_:signature1 sec:validFrom "2024-04-03T00:00:00.000Z"^^xsd:dateTime .
|
|
22
|
+
_:signature1 sec:validUntil "2025-04-03T00:00:00.000Z"^^xsd:dateTime .
|
|
23
|
+
} .
|
|
24
|
+
|
|
25
|
+
_:g3 rt:graph {
|
|
26
|
+
skolem:g1 sec:proof _:signature2 .
|
|
27
|
+
_:signature2 a sec:DataIntegrityProof .
|
|
28
|
+
_:signature2 sec:cryptosuite "ecdsa-rdfc-2019" .
|
|
29
|
+
_:signature2 sec:created "2021-11-13T18:19:39Z" .
|
|
30
|
+
_:signature2 sec:verificationMethod "https://university.example/issuers/14#key-1" .
|
|
31
|
+
_:signature2 sec:proofPurpose "assertionMethod" .
|
|
32
|
+
_:signature2 sec:proofValue "adad123efv434r5200...dqed2t44v43das" .
|
|
33
|
+
} .
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
2
|
+
PREFIX : <http://example.org/stuff/1.0/>
|
|
3
|
+
|
|
4
|
+
_:b0 :p2 :q2 .
|
|
5
|
+
_:b0 rdf:first 1 ;
|
|
6
|
+
rdf:rest _:b1 .
|
|
7
|
+
_:b1 rdf:first _:b2 .
|
|
8
|
+
_:b2 :p :q .
|
|
9
|
+
_:b1 rdf:rest _:b3 .
|
|
10
|
+
_:b3 rdf:first _:b4 .
|
|
11
|
+
_:b4 rdf:first 2 ;
|
|
12
|
+
rdf:rest rdf:nil .
|
|
13
|
+
_:b3 rdf:rest rdf:nil .
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
|
2
|
+
@prefix sec: <https://w3id.org/security#>.
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
|
|
4
|
+
@prefix : <http://example.org/#>.
|
|
5
|
+
|
|
6
|
+
_:g0 {
|
|
7
|
+
:Bob foaf:name "Bob".
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
# sign data graph
|
|
11
|
+
_:g1 {
|
|
12
|
+
_:g0 sec:proof _:dataSignature.
|
|
13
|
+
_:signature1
|
|
14
|
+
a sec:DataIntegrityProof;
|
|
15
|
+
sec:cryptosuite "ecdsa-rdfc-2019";
|
|
16
|
+
sec:created "2021-11-13T18:19:39Z";
|
|
17
|
+
sec:verificationMethod "https://university.example/issuers/14#key-1";
|
|
18
|
+
sec:proofPurpose "assertionMethod";
|
|
19
|
+
sec:proofValue "z58DAdFfa9SkqZMVPxAQp...jQCrfFPP2oumHKtz";
|
|
20
|
+
sec:issuer <https://university.example/issuers/14>;
|
|
21
|
+
sec:validFrom "2024-04-03T00:00:00.000Z"^^xsd:dateTime;
|
|
22
|
+
sec:validUntil "2025-04-03T00:00:00.000Z"^^xsd:dateTime.
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# sign signature graph for verifiable metadata if needed
|
|
26
|
+
_:g3 {
|
|
27
|
+
_:g1 sec:proof _:signature2.
|
|
28
|
+
_:signature2
|
|
29
|
+
a sec:DataIntegrityProof;
|
|
30
|
+
sec:cryptosuite "ecdsa-rdfc-2019";
|
|
31
|
+
sec:created "2021-11-13T18:19:39Z";
|
|
32
|
+
sec:verificationMethod "https://university.example/issuers/14#key-1";
|
|
33
|
+
sec:proofPurpose "assertionMethod";
|
|
34
|
+
sec:proofValue "adad123efv434r5200...dqed2t44v43das".
|
|
35
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
2
|
+
PREFIX : <http://www.example.org/>
|
|
3
|
+
|
|
4
|
+
_:b rdf:reifies <<(:Socrates a :Human)>> .
|
|
5
|
+
_:b :is true .
|
|
6
|
+
|
|
7
|
+
:employee38 :familyName "Smith" .
|
|
8
|
+
<<:employee38 :jobTitle "Assistant Designer" ~ _:id>> :accordingTo :employee22 .
|