-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
637 lines (609 loc) · 28.5 KB
/
index.html
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
<script src="https://unpkg.com/[email protected]/dist/vue.min.js" integrity="sha384-FJXuDBvBSlJDfFRoQKUpCcPnXI9gIahgxlgE1AirUdI8udiPWSrlFs7fWqHRInPR" crossorigin="anonymous"></script>
<script id="content" type="application/ld+json">
{
"@context": {
"@vocab": "http://schema.org/",
"doap": "http://usefulinc.com/ns/doap#",
"implements": { "@id": "doap:implements", "@type": "@id" },
"DataFactory": { "@id": "https://rdf.js.org/data-model-spec/#datafactory-interface", "@type": "@id" },
"Dataset": { "@id": "https://rdf.js.org/dataset-spec/#dataset-interface", "@type": "@id" },
"DatasetCore": { "@id": "https://rdf.js.org/dataset-spec/#datasetcore-interface", "@type": "@id" },
"DatasetCoreFactory": { "@id": "https://rdf.js.org/dataset-spec/#datasetcorefactory-interface", "@type": "@id" },
"Sink": { "@id": "https://rdf.js.org/stream-spec/#sink-interface", "@type": "@id" },
"Source": { "@id": "https://rdf.js.org/stream-spec/#source-interface", "@type": "@id" },
"Store": { "@id": "https://rdf.js.org/stream-spec/#store-interface", "@type": "@id" },
"Stream": { "@id": "https://rdf.js.org/stream-spec/#stream-interface", "@type": "@id" }
},
"@type": "WebPage",
"breadcrumb": [{
"@id": "#specifications",
"breadcrumb": [{
"@id": "/data-model-spec/",
"name": "Data Model",
"description": "Basic RDF Data Model (Terms & Quads)"
}, {
"@id": "/dataset-spec/",
"name": "Dataset",
"description": "Dataset extending the basic Data Model"
}, {
"@id": "/stream-spec/",
"name": "Streams",
"description": "Quad stream processing"
}, {
"@id": "/query-spec/",
"name": "Query",
"description": "Query execution in RDF"
}]
}, {
"@id": "#documentations",
"breadcrumb": [{
"@id": "https://rdfjs.dev/",
"name": "RDF + JS = ❤",
"description": "A website that documents, demos and reviews a selection of JavaScript libraries and how they can be used to manage RDF graphs"
}]
}, {
"@id": "#libraries",
"breadcrumb": [{
"@id": "https://github.com/rdfjs-base/data-model",
"name": "@rdfjs/data-model",
"description": "Basic implementation of RDFJS Data Model.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rdfjs-base/dataset",
"name": "@rdfjs/dataset",
"description": "Basic implementation of RDFJS Dataset.",
"implements": [ "DatasetCore", "DatasetCoreFactory" ]
}, {
"@id": "/N3.js/",
"name": "n3",
"description": "Lightning fast, spec-compatible, streaming RDF for JavaScript.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/jacoscaz/quadstore",
"name": "quadstore",
"description": "An embedded and persistent graph database for JS runtimes (incl. browsers) supporting SPARQL queries and RDF/JS interfaces",
"implements": [ "Store", "Sink", "Source" ]
}, {
"@id": "https://github.com/blake-regalia/graphy.js",
"name": "graphy",
"description": "A collection of RDF libraries for JavaScript developers with a focus on performance and usability.",
"implements": [ "DataFactory", "Dataset", "Source", "Sink" ]
}, {
"@id": "https://github.com/comunica/comunica",
"name": "Comunica",
"description": "Comunica is a highly modular and flexible meta query engine for the Web.",
"implements": [ "DataFactory", "Source" ]
}, {
"@id": "https://github.com/rubensworks/jsonld-streaming-parser.js",
"name": "JSON-LD Streaming parser",
"description": "A fast and lightweight streaming JSON-LD parser for JavaScript.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/rdfxml-streaming-parser.js",
"name": "RDF/XML Streaming parser",
"description": "A highly efficient streaming RDF/XML parser.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/jsonld-context-parser.js",
"name": "JSON-LD context parser",
"description": "A generic JSON-LD context parser.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-test-suite.js",
"name": "RDF Test Suite",
"description": "Executes the RDF and SPARQL test suites.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-isomorphic.js",
"name": "RDF Isomorphic",
"description": "Determines if two RDF graphs are isomorphic.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/graphql-to-sparql.js",
"name": "GraphQL to SPARQL",
"description": "Converts GraphQL queries to SPARQL queries.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/jest-rdf",
"name": "Jest RDF",
"description": "Jest utilities for RDF(JS)",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-object.js",
"name": "RDF Object",
"description": "Loads RDF as JSON objects.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/RubenVerborgh/LDflex",
"name": "LDflex",
"description": "A JavaScript DSL for querying Linked Data on the Web",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/fetch-sparql-endpoint.js",
"name": "Fetch SPARQL endpoint",
"description": "A simple, lightweight module to send queries to SPARQL endpoints and retrieve their results in a streaming fashion.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/sparqlxml-parse.js",
"name": "SPARQL/XML Parser",
"description": "Parses SPARQL XML query results.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/sparqljson-parse.js",
"name": "SPARQL/JSON Parser",
"description": "Parses SPARQL JSON query results.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/rdf-quad.js",
"name": "RDF Quad",
"description": "A convenience constructor for RDF quads.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-string.js",
"name": "RDF String",
"description": "Convenience functions for creating and serializing RDF terms and quads.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/linkeddata/rdflib.js",
"name": "rdflib.js",
"description": "Javascript RDF library for browsers and Node.js.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/joachimvh/SPARQLAlgebra.js",
"name": "SPARQLAlgebra.js",
"description": "SPARQL to SPARQL Algebra converter.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-store-stream.js",
"name": "RDF Store Stream",
"description": "Create an RDF store from an RDF stream.",
"implements": [ "DataFactory", "Source" ]
}, {
"@id": "https://github.com/rubensworks/jsonld-streaming-serializer.js",
"name": "JSON-LD Streaming Serializer",
"description": "A fast and lightweight streaming JSON-LD serializer for JavaScript.",
"implements": [ "DataFactory", "Stream" ]
}, {
"@id": "https://github.com/rubensworks/rdfa-streaming-parser.js",
"name": "RDFa Streaming Parser",
"description": "A fast and lightweight streaming RDFa parser for JavaScript.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/microdata-rdf-streaming-parser.js",
"name": "Microdata to RDF Streaming Parser",
"description": "A fast and lightweight streaming Microdata to RDF parser for JavaScript.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/rdf-parse.js",
"name": "RDF Parse",
"description": "Parses RDF from any serialization.",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/rubensworks/rdf-literal.js",
"name": "RDF Literal",
"description": "Translates between RDF literals and JavaScript primitives",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rubensworks/rdf-dereference.js",
"name": "RDF Dereference",
"description": "Dereference any URL for its RDF contents",
"implements": [ "DataFactory", "Sink" ]
}, {
"@id": "https://github.com/tpluscode/rdf-string",
"name": "@tpluscode/rdf-string",
"description": "The easiet way possible to stringify RDF/JS terms",
"implements": [ "Dataset" ]
}, {
"@id": "https://github.com/tpluscode/rdf-ns-builders",
"name": "@tpluscode/rdf-ns-builders",
"description": "Wrappers of @rdfjs/namespace for common vocabularies. Includes Typescript declarations of vocabulary terms extracted from their respective sources",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/tpluscode/sparql-builder",
"name": "@tpluscode/sparql-builder",
"description": "A high level API to simply the construction of SPARQL queries",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/ontola/ontologies#ontologiescore",
"name": "@ontologies/core",
"description": "An RDF data factory for using ontologies in your JS projects",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/rdf-esm/formats-common",
"name": "@rdf-esm/formats-common",
"description": "A browser-friendly set of sinks (parsers and serializers) for common RDF formats",
"implements": [ "Sink" ]
}, {
"@id": "https://github.com/zazuko/rdfjs-elements/tree/master/packages/formats",
"name": "@rdfjs-elements/formats-pretty",
"description": "A browser-friendly set of sinks, with serializers optimized for pretty output",
"implements": [ "Sink" ]
}, {
"@id": "https://github.com/zazuko/rdfjs-elements",
"name": "@rdfjs-elements",
"description": "Web components for editing RDF",
"implements": [ ]
}, {
"@id": "https://zazuko.github.io/clownface/",
"name": "clownface",
"description": "High level graph traversal library",
"implements": [ ]
}, {
"@id": "https://www.npmjs.com/package/clownface-shacl-path",
"name": "clownface-shacl-path",
"description": "Work with SHACL Property Paths using clownface",
"implements": [ ]
}, {
"@id": "https://www.npmjs.com/package/webpack-loader-rdf",
"name": "webpack-loader-rdf",
"description": "Bundle RDF documents statically using webpack, without requiring parsers in runtime",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/semantu/lincd",
"name": "LINCD",
"description": "Library & registry for UI components tied to SHACL shapes, with automatic data validation",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/hypermedia-app/express-rdf-request",
"name": "express-rdf-request",
"description": "Express middleware for working with RDF payloads using clownface",
"implements": [ ]
}, {
"@id": "https://github.com/hypermedia-app/express-middleware-shacl",
"name": "express-middleware-shacl",
"description": "Express middleware for validating RDF payloads with SHACL",
"implements": [ ]
}, {
"@id": "https://github.com/rdf-ext/grapoi",
"name": "grapoi",
"description": "Grapoi is a JavaScript graph traversal library inspired by Gremlin. It allows querying RDF/JS Datasets readable and intuitive way. Grapoi makes processing RDF data in JavaScript fun again.",
"implements": []
}, {
"@id": "https://github.com/rdf-ext/housemd",
"name": "housemd",
"description": "Contains an RDF dataset about people, places, and events of the TV series House.",
"implements": []
}, {
"@id": "https://github.com/rdf-ext/rdf-ext",
"name": "rdf-ext",
"description": "RDF-Ext is a JavaScript library that extends the RDF/JS specs to handle RDF data in a developer-friendly way.",
"implements": [
"DataFactory",
"DatasetCoreFactory",
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdf-ext/rdf-sparql-builder",
"name": "rdf-sparql-builder",
"description": "rdf-sparql-builder helps building SPARQL queries in JavaScript code. Instead of error-prone string concatenations, method chaining allows writing queries without switching the programming language. The RDF/JS data model is used for terms like named nodes and variables.",
"implements": []
}, {
"@id": "https://github.com/rdf-ext/shacl-engine",
"name": "shacl-engine",
"description": "A fast SHACL engine for data provided as RDF/JS objects.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/environment",
"name": "@rdfjs/environment",
"description": "This package provides a flexible RDF/JS factory. The Environment class takes one or more RDF/JS factory classes and creates a new, merged instance. All factory methods will use the Environment instance as factory to create new object instances. Clones can be created to manipulate an instance isolated from other instances.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/express-handler",
"name": "@rdfjs/express-handler",
"description": "The @rdfjs/express-handler middleware provides methods to parse incoming RDF data from request with content like POST or PUT requests. It also provides methods to serialize outgoing RDF data.",
"implements": [
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/fetch",
"name": "@rdfjs/fetch",
"description": "Wrapper for fetch to simplify sending and retrieving RDF data.",
"implements": [
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/fetch-lite",
"name": "@rdfjs/fetch-lite",
"description": "Wrapper for fetch to simplify sending and retrieving RDF data. This is a light version of the @rdfjs/fetch package, without the @rdfjs/formats-common dependency. It is useful when you want to make a build for the browser with a reduced set of parsers and serializers.",
"implements": [
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/formats-common",
"name": "@rdfjs/formats-common",
"description": "This module bundles parsers and serializers for the most common RDF formats. Instances of SinkMap are used to handle different media types.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/namespace",
"name": "@rdfjs/namespace",
"description": "Named Node builder.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/normalize",
"name": "@rdfjs/normalize",
"description": "RDF Dataset Normalization as described in the spec from the Credentials W3C community group. Subtitle is \"A Standard RDF Dataset Normalization Algorithm\".",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/parser-jsonld",
"name": "@rdfjs/parser-jsonld",
"description": "JSON-LD parser that implements the RDF/JS Sink interface using jsonld-streaming-parser.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/parser-n3",
"name": "@rdfjs/parser-n3",
"description": "N3 parser which implements the RDF/JS Sink interface using the N3.js library.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/prefix-map",
"name": "@rdfjs/prefix-map",
"description": "A Map for RDF/JS prefixes. This package implements the JavaScript Map interface for RDF prefixes. Key-Value pairs are stored with the prefix as the key as a string and the namespaces as the value in an RDF/JS NamedNode object. There are some additional convenience methods to handle CURIEs and prefix events of RDF/JS Quad streams.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/score",
"name": "@rdfjs/score",
"description": "Scores RDF/JS terms inside a dataset",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/serializer-jsonld",
"name": "@rdfjs/serializer-jsonld",
"description": "JSON-LD serializer that implements the RDF/JS Sink interface.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/serializer-jsonld-ext",
"name": "@rdfjs/serializer-jsonld-ext",
"description": "JSON-LD serializer that implements the RDF/JS Sink interface and supports different output styles. This package handles the stream processing and uses jsonld.js for the actual serialization process.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/serializer-ntriples",
"name": "@rdfjs/serializer-ntriples",
"description": "N-Triples serializer that implements the RDF/JS Sink interface.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/serializer-rdfjs",
"name": "@rdfjs/serializer-rdfjs",
"description": "RDF/JS JavaScript code serializer that implements the RDF/JS Sink interface. It serializes the given quads to a JavaScript module that exports a single function. The created function will return an array of the re-created quads.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/serializer-turtle",
"name": "@rdfjs/serializer-turtle",
"description": "A Turtle serializer that implements the RDF/JS Sink interface. It serializes the given quads to a pretty-printed Turtle string.",
"implements": [
"Sink",
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/sink",
"name": "@rdfjs/sink",
"description": "Abstract RDF/JS Sink interface implementation.",
"implements": [
"Sink"
]
}, {
"@id": "https://github.com/rdfjs-base/sink-map",
"name": "@rdfjs/sink-map",
"description": "Map for RDF/JS Sink including shortcut methods.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/sink-to-duplex",
"name": "@rdfjs/sink-to-duplex",
"description": "Creates a duplex wrapper for RDF/JS Sink. With the duplex wrapper it's possible to use a RDF/JS Sink like a Node.js duplex stream with a Readable and Writable interface.",
"implements": [
"Stream"
]
}, {
"@id": "https://github.com/rdfjs-base/term-map",
"name": "@rdfjs/term-map",
"description": "A Map for RDF/JS Terms keys. This package implements the JavaScript Map interface exclusively for RDF/JS Terms keys and treats Terms with the same N-Triples representation as they are the same object.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/term-set",
"name": "@rdfjs/term-set",
"description": "A Set for RDF/JS Terms. This package implements the JavaScript Set interface exclusively for RDF/JS Terms and treats Terms with the same N-Triples representation as they are the same object.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/to-ntriples",
"name": "@rdfjs/to-ntriples",
"description": "Converts RDF/JS Terms, Quads and Datasets to N-Triple strings.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/traverser",
"name": "@rdfjs/traverser",
"description": "This package provides a generic traverser for RDF/JS Datasets.",
"implements": []
}, {
"@id": "https://github.com/rdfjs-base/tree",
"name": "@rdfjs/tree",
"description": "A tree structure for a set of RDF/JS Quads.",
"implements": []
}, {
"@id": "https://github.com/karelklima/ldkit",
"name": "LDkit",
"description": "Linked Data object graph mapping toolkit with end-to-end TypeScript support.",
"implements": [ "DataFactory" ]
}, {
"@id": "https://github.com/zazuko/mocha-chai-rdf",
"name": "mocha-chai-rdf",
"description": "Helpers to simplify testing code which uses RDF/JS data models.",
"implements": [ ]
}, {
"@id": "https://github.com/tpluscode/eslint-plugin-rdf",
"name": "eslint-plugin-rdf",
"description": "Linting rules for RDF/JS projects",
"implements": [ ]
}
]
}]
}
</script>
<style>
h1, h2 {
text-align: center;
}
section {
margin-bottom: 2em;
}
.card {
margin-bottom: 1em;
}
.interface {
font-size: 0.8em;
}
</style>
<title>RDF JavaScript Libraries</title>
</head>
<body>
<div id="app">
<header>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="https://avatars1.githubusercontent.com/u/6156399?s=100" width="30" height="30" class="d-inline-block align-top" alt="">
RDFJS
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="specificationsDropdown" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Specifications</a>
<div class="dropdown-menu" aria-labelledby="specificationsDropdown">
<a class="dropdown-item" v-for="specification in specifications" :href="specification['@id']">{{ specification.name }}</a>
</div>
</li>
</ul>
</div>
</nav>
</header>
<div class="jumbotron">
<h1>RDF JavaScript Libraries</h1>
</div>
<div class="container">
<section v-if="specifications.length">
<h2>Specifications</h2>
<div class="row">
<div class="col-md-4" v-for="specification in specifications">
<div class="card">
<div class="card-body">
<h5 class="card-title"><a :href="specification['@id']">{{ specification.name }}</a></h5>
<p class="card-text">{{ specification.description }}</p>
</div>
</div>
</div>
</div>
</section>
<section v-if="documentations.length">
<h2>Documentation</h2>
<div class="row">
<div class="col-md-4" v-for="documentation in documentations">
<div class="card">
<div class="card-body">
<h5 class="card-title"><a :href="documentation['@id']">{{ documentation.name }}</a></h5>
<p class="card-text">{{ documentation.description }}</p>
</div>
</div>
</div>
</div>
</section>
<section v-if="libraries.length">
<h2>Libraries</h2>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="librariesSort">Sort</label>
<select class="form-control" id="librariesSort" v-model="librariesSort" @change="updateLibraries">
<option value=""></option>
<option value="asc">A-Z</option>
<option value="desc">Z-A</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label for="librariesFilter">Interface</label>
<select class="form-control" id="librariesFilter" v-model="librariesFilter" @change="updateLibraries">
<option value=""></option>
<option v-for="interface of interfaces" :value="interface">{{ interface }}</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4" v-for="library in libraryList">
<div class="card">
<div class="card-body">
<h5 class="card-title"><a :href="library['@id']">{{ library.name }}</a></h5>
<p class="card-text">{{ library.description }}</p>
<span class="interface" v-for="interface in library['implements']">
{{ interface }}
</span>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<script>
let libraryList = []
let librariesSort = ''
let librariesFilter = ''
const content = JSON.parse(document.getElementById('content').innerText)
const { specifications, documentations, libraries } = content.breadcrumb.reduce((list, item) => {
list[item['@id'].slice(1)] = item.breadcrumb
return list
}, {})
const interfaces = [...new Set(libraries.flatMap(library => library.implements))].sort()
const app = new Vue({
el: '#app',
data: {
specifications,
documentations,
libraries,
libraryList
}
})
function updateLibraries () {
libraryList = libraries.slice()
if (librariesFilter) {
libraryList = libraryList.filter(library => library.implements.includes(librariesFilter))
}
if (librariesSort === 'asc') {
libraryList = libraryList.sort((a, b) => a.name.localeCompare(b.name))
}
if (librariesSort === 'desc') {
libraryList = libraryList.sort((a, b) => b.name.localeCompare(a.name))
}
app.libraryList = libraryList
}
updateLibraries()
</script>
</body>
</html>