graphdb-workbench-tests 3.0.0-TR7 → 3.0.0-TR9
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/fixtures/graphql/soml/swapi-schema-planets.yaml +51 -0
- package/fixtures/graphql/soml/swapi-schema-species.yaml +66 -0
- package/fixtures/locale-en.json +101 -6
- package/fixtures/ttyg/agent/get-agent-list-autocomplete-query.json +23 -0
- package/fixtures/ttyg/autocomplete-response.json +154 -0
- package/integration/graphql/create-graphql-endpoint.spec.js +7 -6
- package/integration/graphql/edit-graphql-enpoint.spec.js +39 -103
- package/integration/graphql/graphql-endpoint-filtering.spec.js +12 -15
- package/integration/graphql/graphql-endpoint-management-view.spec.js +106 -99
- package/integration/graphql/graphql-playground.spec.js +68 -48
- package/integration/graphql/graphql-set-default-endpoint.spec.js +42 -0
- package/integration/sparql-editor/saved-query/readonly-query.spec.js +65 -0
- package/integration/ttyg/edit-agent.spec.js +45 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/steps/graphql/graphiql-editor-tools-steps.js +10 -0
- package/steps/graphql/graphiql-playground-steps.js +6 -0
- package/steps/graphql/graphql-endpoint-management-steps.js +10 -1
- package/steps/ttyg/ttyg-agent-settings-modal.steps.js +44 -0
- package/steps/yasgui/saved-queries-dialog.js +19 -3
- package/stubs/graphql/graphql-stubs.js +7 -3
- package/stubs/ttyg/ttyg-stubs.js +7 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
id: /soml/swapi-planets
|
|
2
|
+
label: Star Wars planets API
|
|
3
|
+
creator: http://ontotext.com
|
|
4
|
+
created: 2019-06-15
|
|
5
|
+
updated: 2019-06-16
|
|
6
|
+
versionInfo: 0.1
|
|
7
|
+
|
|
8
|
+
prefixes:
|
|
9
|
+
# common prefixes
|
|
10
|
+
so: "http://www.ontotext.com/semantic-object/"
|
|
11
|
+
voc: "https://swapi.co/vocabulary/"
|
|
12
|
+
dct: "http://purl.org/dc/terms/"
|
|
13
|
+
gn: "http://www.geonames.org/ontology#"
|
|
14
|
+
owl: "http://www.w3.org/2002/07/owl#"
|
|
15
|
+
puml: "http://plantuml.com/ontology#"
|
|
16
|
+
rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
17
|
+
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
|
|
18
|
+
skos: "http://www.w3.org/2004/02/skos/core#"
|
|
19
|
+
void: "http://rdfs.org/ns/void#"
|
|
20
|
+
wgs84: "http://www.w3.org/2003/01/geo/wgs84_pos#"
|
|
21
|
+
xsd: "http://www.w3.org/2001/XMLSchema#"
|
|
22
|
+
|
|
23
|
+
specialPrefixes:
|
|
24
|
+
base_iri: https://swapi.co/resource/
|
|
25
|
+
vocab_iri: https://swapi.co/vocabulary/
|
|
26
|
+
vocab_prefix: voc
|
|
27
|
+
|
|
28
|
+
objects:
|
|
29
|
+
Planet:
|
|
30
|
+
descr: "The fictional universe of the Star Wars franchise features multiple planets and moons"
|
|
31
|
+
type: ["voc:Planet"]
|
|
32
|
+
typeProp: "rdf:type"
|
|
33
|
+
name: "rdfs:label"
|
|
34
|
+
props:
|
|
35
|
+
desc: {label: "Description"}
|
|
36
|
+
diameter: {label: "Diameter in Km", range: int}
|
|
37
|
+
gravity: {label: "Gravitational pressure m/s squared"}
|
|
38
|
+
orbitalPeriod: {label: "Orbital period in days", range: integer}
|
|
39
|
+
population: {range: integer}
|
|
40
|
+
rotationPeriod: {label: "Rotation period in hours", range: integer}
|
|
41
|
+
surfaceWater: {label: "Surface water in m cubed", range: integer}
|
|
42
|
+
terrain: {label: "Planets terrain"}
|
|
43
|
+
climate: {label: "Planets climate"}
|
|
44
|
+
|
|
45
|
+
rbac:
|
|
46
|
+
roles:
|
|
47
|
+
Admin:
|
|
48
|
+
description: "Administrator role, can read, write and delete objects and schema"
|
|
49
|
+
actions: [
|
|
50
|
+
"*/*/*",
|
|
51
|
+
]
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
id: /soml/swapi-species
|
|
2
|
+
label: Star Wars species API
|
|
3
|
+
creator: http://ontotext.com
|
|
4
|
+
created: 2019-06-15
|
|
5
|
+
updated: 2019-06-16
|
|
6
|
+
versionInfo: 0.1
|
|
7
|
+
|
|
8
|
+
prefixes:
|
|
9
|
+
# common prefixes
|
|
10
|
+
so: "http://www.ontotext.com/semantic-object/"
|
|
11
|
+
voc: "https://swapi.co/vocabulary/"
|
|
12
|
+
dct: "http://purl.org/dc/terms/"
|
|
13
|
+
gn: "http://www.geonames.org/ontology#"
|
|
14
|
+
owl: "http://www.w3.org/2002/07/owl#"
|
|
15
|
+
puml: "http://plantuml.com/ontology#"
|
|
16
|
+
rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
17
|
+
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
|
|
18
|
+
skos: "http://www.w3.org/2004/02/skos/core#"
|
|
19
|
+
void: "http://rdfs.org/ns/void#"
|
|
20
|
+
wgs84: "http://www.w3.org/2003/01/geo/wgs84_pos#"
|
|
21
|
+
xsd: "http://www.w3.org/2001/XMLSchema#"
|
|
22
|
+
|
|
23
|
+
specialPrefixes:
|
|
24
|
+
base_iri: https://swapi.co/resource/
|
|
25
|
+
vocab_iri: https://swapi.co/vocabulary/
|
|
26
|
+
vocab_prefix: voc
|
|
27
|
+
|
|
28
|
+
objects:
|
|
29
|
+
Species:
|
|
30
|
+
descr: "A group of living organisms consisting of similar individuals capable of exchanging genes or interbreeding"
|
|
31
|
+
type: ["voc:Species"]
|
|
32
|
+
typeProp: "rdf:type"
|
|
33
|
+
name: "rdfs:label"
|
|
34
|
+
props:
|
|
35
|
+
desc: {label: "Description"}
|
|
36
|
+
averageLifespan: {descr: "Lifespan of the species"}
|
|
37
|
+
averageHeight: {descr: "Average height of the species", range: decimal}
|
|
38
|
+
language: {descr: "Species language"}
|
|
39
|
+
skinColor: {descr: "Species skin colour", max: inf}
|
|
40
|
+
hairColor: {descr: "Species hair colour", max: inf}
|
|
41
|
+
eyeColor: {descr: "Species eye colour", max: inf}
|
|
42
|
+
planet: {descr: "Planet which host the species", max: inf, range: Planet}
|
|
43
|
+
|
|
44
|
+
Planet:
|
|
45
|
+
descr: "The fictional universe of the Star Wars franchise features multiple planets and moons"
|
|
46
|
+
type: ["voc:Planet"]
|
|
47
|
+
typeProp: "rdf:type"
|
|
48
|
+
name: "rdfs:label"
|
|
49
|
+
props:
|
|
50
|
+
desc: {label: "Description"}
|
|
51
|
+
diameter: {label: "Diameter in Km", range: int}
|
|
52
|
+
gravity: {label: "Gravitational pressure m/s squared"}
|
|
53
|
+
orbitalPeriod: {label: "Orbital period in days", range: integer}
|
|
54
|
+
population: {range: integer}
|
|
55
|
+
rotationPeriod: {label: "Rotation period in hours", range: integer}
|
|
56
|
+
surfaceWater: {label: "Surface water in m cubed", range: integer}
|
|
57
|
+
terrain: {label: "Planets terrain"}
|
|
58
|
+
climate: {label: "Planets climate"}
|
|
59
|
+
|
|
60
|
+
rbac:
|
|
61
|
+
roles:
|
|
62
|
+
Admin:
|
|
63
|
+
description: "Administrator role, can read, write and delete objects and schema"
|
|
64
|
+
actions: [
|
|
65
|
+
"*/*/*",
|
|
66
|
+
]
|
package/fixtures/locale-en.json
CHANGED
|
@@ -589,8 +589,28 @@
|
|
|
589
589
|
"method": {
|
|
590
590
|
"iri_discovery_search": {
|
|
591
591
|
"label": "Full-text search in labels for IRI discovery",
|
|
592
|
-
"tooltip": "Helps the model discover the IRIs for a particular incomplete query, for example the name Michael in
|
|
592
|
+
"tooltip": "Helps the model discover the IRIs (using FTS) for a particular incomplete query, for example the name Michael in \"What's Michael's phone number?\""
|
|
593
|
+
},
|
|
594
|
+
"autocomplete_iri_discovery_search": {
|
|
595
|
+
"label": "Autocomplete for IRI discovery",
|
|
596
|
+
"tooltip": "Helps the model discover the IRIs (using autocomplete) for a particular incomplete query, for example the name Michael in \"What's Michael's phone number?\"",
|
|
597
|
+
"btn": {
|
|
598
|
+
"reload": {
|
|
599
|
+
"tooltip": "Refresh the autocomplete index"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
593
602
|
}
|
|
603
|
+
},
|
|
604
|
+
"autocomplete_disabled_message": "You must <a href=\"{{autocompleteIndexPage}}\" target=\"_blank\">enable the Autocomplete index</a> on chosen repository to use this method",
|
|
605
|
+
"autocomplete_max_number_of_results_per_call": {
|
|
606
|
+
"label": "Max number of results (IRIs) per call",
|
|
607
|
+
"placeholder": "Automatic value",
|
|
608
|
+
"tooltip": "Limit the maximum number of IRIs. The default value is automatic and determined at runtime. If not sure, leave the default value."
|
|
609
|
+
},
|
|
610
|
+
"autocomplete_search_predicates": {
|
|
611
|
+
"label": "Search predicates",
|
|
612
|
+
"placeholder": "Search labels",
|
|
613
|
+
"tooltip": "Enter one or more predicates to use for label search with autocomplete."
|
|
594
614
|
}
|
|
595
615
|
}
|
|
596
616
|
},
|
|
@@ -787,6 +807,9 @@
|
|
|
787
807
|
"export_schema": {
|
|
788
808
|
"label": "Export schema definition",
|
|
789
809
|
"tooltip": "Export the GraphQL endpoint schema definition"
|
|
810
|
+
},
|
|
811
|
+
"set_as_default": {
|
|
812
|
+
"success": "Successfully set \"{{endpointId}}\" endpoint as default"
|
|
790
813
|
}
|
|
791
814
|
},
|
|
792
815
|
"messages": {
|
|
@@ -796,6 +819,13 @@
|
|
|
796
819
|
"labels": {
|
|
797
820
|
"description": "Description"
|
|
798
821
|
}
|
|
822
|
+
},
|
|
823
|
+
"endpoint_configuration_modal": {
|
|
824
|
+
"title": "Configure GraphQL endpoint",
|
|
825
|
+
"messages": {
|
|
826
|
+
"error_saving_configuration": "Error saving endpoint configuration",
|
|
827
|
+
"success_saving_configuration": "Endpoint configuration saved"
|
|
828
|
+
}
|
|
799
829
|
}
|
|
800
830
|
},
|
|
801
831
|
"create_endpoint": {
|
|
@@ -806,7 +836,7 @@
|
|
|
806
836
|
}
|
|
807
837
|
},
|
|
808
838
|
"wizard_steps": {
|
|
809
|
-
"
|
|
839
|
+
"select_schema_sources": {
|
|
810
840
|
"title": "Select schema source",
|
|
811
841
|
"source_type": {
|
|
812
842
|
"graphql_schema_shapes": {
|
|
@@ -819,7 +849,8 @@
|
|
|
819
849
|
"graphql_schema_shapes": {
|
|
820
850
|
"title": "GraphQL schema shapes",
|
|
821
851
|
"messages": {
|
|
822
|
-
"
|
|
852
|
+
"loading_graphql_shapes": "Loading GraphQL schema shapes...",
|
|
853
|
+
"no_schemas": "No GraphQL schema shapes were found in the selected repository. You can browse other repositories or change the source.",
|
|
823
854
|
"endpoint_per_shape": "Each GraphQL schema shape results in one endpoint"
|
|
824
855
|
}
|
|
825
856
|
},
|
|
@@ -846,17 +877,22 @@
|
|
|
846
877
|
"use_all_graphs": {
|
|
847
878
|
"label": "Use all graphs",
|
|
848
879
|
"messages": {
|
|
849
|
-
"all_graphs": "All {{count}} graphs are included for endpoint creation"
|
|
880
|
+
"all_graphs": "All {{count}} graphs are included for endpoint creation",
|
|
881
|
+
"no_graphs": "No graphs were found in the selected repository."
|
|
850
882
|
}
|
|
851
883
|
},
|
|
852
884
|
"use_shacl_shape_graph": {
|
|
853
885
|
"label": "Use SHACL shape graph",
|
|
854
886
|
"messages": {
|
|
855
|
-
"all_shacl_shape_graphs": "All {{count}} SHACL shape graphs are included for endpoint creation"
|
|
887
|
+
"all_shacl_shape_graphs": "All {{count}} SHACL shape graphs are included for endpoint creation",
|
|
888
|
+
"no_graphs": "No SHACL shape graphs were found in the selected repository."
|
|
856
889
|
}
|
|
857
890
|
},
|
|
858
891
|
"pick_graphs": {
|
|
859
|
-
"label": "Select one or more graphs"
|
|
892
|
+
"label": "Select one or more graphs",
|
|
893
|
+
"messages": {
|
|
894
|
+
"no_graphs": "No graphs were found in the selected repository."
|
|
895
|
+
}
|
|
860
896
|
}
|
|
861
897
|
},
|
|
862
898
|
"messages": {
|
|
@@ -871,6 +907,58 @@
|
|
|
871
907
|
"form": {}
|
|
872
908
|
}
|
|
873
909
|
},
|
|
910
|
+
"shapes_multiselect": {
|
|
911
|
+
"available_options": {
|
|
912
|
+
"title": "Available (not included)",
|
|
913
|
+
"filter_placeholder": "Filter to select specific shapes"
|
|
914
|
+
},
|
|
915
|
+
"selected_options": {
|
|
916
|
+
"title": "Included for generation",
|
|
917
|
+
"count": "{{count}} GraphQL schema shapes included"
|
|
918
|
+
},
|
|
919
|
+
"actions": {
|
|
920
|
+
"add": {
|
|
921
|
+
"tooltip": "Add the shape to the list of included shapes"
|
|
922
|
+
},
|
|
923
|
+
"add_all": {
|
|
924
|
+
"label": "Add all",
|
|
925
|
+
"tooltip": "Add all shapes to the list of included shapes"
|
|
926
|
+
},
|
|
927
|
+
"remove": {
|
|
928
|
+
"tooltip": "Remove the shape from the list of included shapes"
|
|
929
|
+
},
|
|
930
|
+
"remove_all": {
|
|
931
|
+
"label": "Remove all",
|
|
932
|
+
"tooltip": "Remove all shapes from the list of included shapes"
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
"graphs_multiselect": {
|
|
937
|
+
"available_options": {
|
|
938
|
+
"title": "Available (not included)",
|
|
939
|
+
"filter_placeholder": "Filter to select specific graphs"
|
|
940
|
+
},
|
|
941
|
+
"selected_options": {
|
|
942
|
+
"title": "Included for generation",
|
|
943
|
+
"count": "{{count}} SHACL shape graphs are included"
|
|
944
|
+
},
|
|
945
|
+
"actions": {
|
|
946
|
+
"add": {
|
|
947
|
+
"tooltip": "Add the graph to the list of included graphs"
|
|
948
|
+
},
|
|
949
|
+
"add_all": {
|
|
950
|
+
"label": "Add all",
|
|
951
|
+
"tooltip": "Add all graphs to the list of included graphs"
|
|
952
|
+
},
|
|
953
|
+
"remove": {
|
|
954
|
+
"tooltip": "Remove the graph from the list of included graphs"
|
|
955
|
+
},
|
|
956
|
+
"remove_all": {
|
|
957
|
+
"label": "Remove all",
|
|
958
|
+
"tooltip": "Remove all graphs from the list of included graphs"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
},
|
|
874
962
|
"actions": {
|
|
875
963
|
"next": {
|
|
876
964
|
"label": "Next"
|
|
@@ -890,6 +978,12 @@
|
|
|
890
978
|
"label": "Generate"
|
|
891
979
|
}
|
|
892
980
|
}
|
|
981
|
+
},
|
|
982
|
+
"messages": {
|
|
983
|
+
"source_repository_changed": {
|
|
984
|
+
"title": "Confirm source repository change",
|
|
985
|
+
"body": "Changing the source repository may affect your current setup and data. Are you sure you want to proceed?"
|
|
986
|
+
}
|
|
893
987
|
}
|
|
894
988
|
}
|
|
895
989
|
},
|
|
@@ -2064,6 +2158,7 @@
|
|
|
2064
2158
|
"common.error": "Error",
|
|
2065
2159
|
"common.warning": "Warning",
|
|
2066
2160
|
"common.loading": "Loading...",
|
|
2161
|
+
"common.select": "Select...",
|
|
2067
2162
|
"common.on.btn": "ON",
|
|
2068
2163
|
"common.off.btn": "OFF",
|
|
2069
2164
|
"common.search.btn": "Search",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "asst_G8EtHyT8kAGeDmCa3Nh6y74v",
|
|
4
|
+
"name": "Test autocomplete extraction agent",
|
|
5
|
+
"model": "gpt-4o",
|
|
6
|
+
"temperature": 0.7,
|
|
7
|
+
"topP": 1.0,
|
|
8
|
+
"repositoryId": "starwars",
|
|
9
|
+
"instructions": {
|
|
10
|
+
"systemInstruction": null,
|
|
11
|
+
"userInstruction": null
|
|
12
|
+
},
|
|
13
|
+
"assistantExtractionMethods": [
|
|
14
|
+
{
|
|
15
|
+
"method": "sparql_search",
|
|
16
|
+
"ontologyGraph": null,
|
|
17
|
+
"sparqlQuery": "CONSTRUCT {\n ?s ?p ?o\n} WHERE {\n GRAPH <http://example.com/sw-ont> {\n ?s ?p ?o\n }\n}",
|
|
18
|
+
"addMissingNamespaces": false
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"additionalExtractionMethods": []
|
|
22
|
+
}
|
|
23
|
+
]
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"suggestions": [
|
|
3
|
+
{
|
|
4
|
+
"type": "prefix",
|
|
5
|
+
"value": "rep",
|
|
6
|
+
"description": "PREFIX <b>re</b>p: <http://www.openrdf.org/config/repository#>"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "uri",
|
|
10
|
+
"value": "http://www.w3.org/2006/vcard/ns#rev",
|
|
11
|
+
"description": "http://www.w3.org/2006/vcard/ns#<b>re</b>v"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "uri",
|
|
15
|
+
"value": "https://swapi.co/resource/human/85",
|
|
16
|
+
"description": "<b>Re</b>y <https://swapi.co/resource/human/85>"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "uri",
|
|
20
|
+
"value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",
|
|
21
|
+
"description": "http://www.w3.org/1999/02/22-rdf-syntax-ns#<b>re</b>st"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "uri",
|
|
25
|
+
"value": "http://www.w3.org/ns/odrl/2/read",
|
|
26
|
+
"description": "http://www.w3.org/ns/odrl/2/<b>re</b>ad"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "uri",
|
|
30
|
+
"value": "http://spinrdf.org/sp#regex",
|
|
31
|
+
"description": "http://spinrdf.org/sp#<b>re</b>gex"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "uri",
|
|
35
|
+
"value": "http://www.w3.org/ns/shacl#result",
|
|
36
|
+
"description": "http://www.w3.org/ns/shacl#<b>re</b>sult"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "uri",
|
|
40
|
+
"value": "http://www.w3.org/ns/earl#result",
|
|
41
|
+
"description": "http://www.w3.org/ns/earl#<b>re</b>sult"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "uri",
|
|
45
|
+
"value": "http://www.w3.org/ns/odrl/2/remedy",
|
|
46
|
+
"description": "http://www.w3.org/ns/odrl/2/<b>re</b>medy"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "uri",
|
|
50
|
+
"value": "http://www.opengis.net/def/function/geosparql/relate",
|
|
51
|
+
"description": "http://www.opengis.net/def/function/geosparql/<b>re</b>late"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"type": "uri",
|
|
55
|
+
"value": "http://www.w3.org/2006/vcard/ns#region",
|
|
56
|
+
"description": "http://www.w3.org/2006/vcard/ns#<b>re</b>gion"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "uri",
|
|
60
|
+
"value": "http://www.w3.org/ns/dcat#record",
|
|
61
|
+
"description": "http://www.w3.org/ns/dcat#<b>re</b>cord"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "uri",
|
|
65
|
+
"value": "http://www.w3.org/ns/hydra/core#returns",
|
|
66
|
+
"description": "http://www.w3.org/ns/hydra/core#<b>re</b>turns"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "uri",
|
|
70
|
+
"value": "http://www.w3.org/2005/xpath-functions#replace",
|
|
71
|
+
"description": "http://www.w3.org/2005/xpath-functions#<b>re</b>place"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "uri",
|
|
75
|
+
"value": "http://usefulinc.com/ns/doap#release",
|
|
76
|
+
"description": "http://usefulinc.com/ns/doap#<b>re</b>lease"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "uri",
|
|
80
|
+
"value": "http://www.w3.org/2004/02/skos/core#related",
|
|
81
|
+
"description": "http://www.w3.org/2004/02/skos/core#<b>re</b>lated"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "uri",
|
|
85
|
+
"value": "http://spinrdf.org/sp#reduced",
|
|
86
|
+
"description": "http://spinrdf.org/sp#<b>re</b>duced"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"type": "uri",
|
|
90
|
+
"value": "http://www.w3.org/ns/odrl/2/Request",
|
|
91
|
+
"description": "http://www.w3.org/ns/odrl/2/<b>Re</b>quest"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"type": "uri",
|
|
95
|
+
"value": "https://swapi.co/vocabulary/Reptile",
|
|
96
|
+
"description": "https://swapi.co/vocabulary/<b>Re</b>ptile"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "uri",
|
|
100
|
+
"value": "http://www.w3.org/ns/prov#Replace",
|
|
101
|
+
"description": "http://www.w3.org/ns/prov#<b>Re</b>place"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "uri",
|
|
105
|
+
"value": "http://www.w3.org/ns/prov#Removal",
|
|
106
|
+
"description": "http://www.w3.org/ns/prov#<b>Re</b>moval"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "uri",
|
|
110
|
+
"value": "http://usefulinc.com/ns/doap#revision",
|
|
111
|
+
"description": "http://usefulinc.com/ns/doap#<b>re</b>vision"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "uri",
|
|
115
|
+
"value": "https://swapi.co/vocabulary/resident",
|
|
116
|
+
"description": "https://swapi.co/vocabulary/<b>re</b>sident"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"type": "uri",
|
|
120
|
+
"value": "http://purl.org/dc/terms/requires",
|
|
121
|
+
"description": "http://purl.org/dc/terms/<b>re</b>quires"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "uri",
|
|
125
|
+
"value": "http://www.w3.org/ns/hydra/core#required",
|
|
126
|
+
"description": "http://www.w3.org/ns/hydra/core#<b>re</b>quired"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "uri",
|
|
130
|
+
"value": "http://purl.org/dc/terms/replaces",
|
|
131
|
+
"description": "http://purl.org/dc/terms/<b>re</b>places"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"type": "uri",
|
|
135
|
+
"value": "http://www.w3.org/ns/odrl/2/relation",
|
|
136
|
+
"description": "http://www.w3.org/ns/odrl/2/<b>re</b>lation"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"type": "uri",
|
|
140
|
+
"value": "http://purl.org/dc/terms/relation",
|
|
141
|
+
"description": "http://purl.org/dc/terms/<b>re</b>lation"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "uri",
|
|
145
|
+
"value": "http://purl.org/dc/elements/1.1/relation",
|
|
146
|
+
"description": "http://purl.org/dc/elements/1.1/<b>re</b>lation"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"type": "uri",
|
|
150
|
+
"value": "http://www.w3.org/ns/hydra/core#readable",
|
|
151
|
+
"description": "http://www.w3.org/ns/hydra/core#<b>re</b>adable"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
@@ -57,12 +57,13 @@ describe('Graphql: create endpoint', () => {
|
|
|
57
57
|
// And endpoint params form should be empty
|
|
58
58
|
CreateGraphqlEndpointSteps.getEndpointIdFieldInput().should('have.value', '');
|
|
59
59
|
CreateGraphqlEndpointSteps.getEndpointLabelFieldInput().should('have.value', '');
|
|
60
|
-
|
|
60
|
+
// And the vocabulary prefix select should have the placeholder option selected (it has no value, just label)
|
|
61
|
+
CreateGraphqlEndpointSteps.getVocabularyPrefixSelectSelectedOption().should('contain', 'Select prefix');
|
|
61
62
|
|
|
62
63
|
// And Use all graphs option should be selected by default
|
|
63
64
|
CreateGraphqlEndpointSteps.getSelectedGraphSource().parent().should('contain', 'Use all graphs');
|
|
64
65
|
// And No graphs should be found
|
|
65
|
-
CreateGraphqlEndpointSteps.
|
|
66
|
+
CreateGraphqlEndpointSteps.getAllGraphsWillBeUsedMessage().should('be.visible');
|
|
66
67
|
|
|
67
68
|
// When I switch to shacl shape graphs option
|
|
68
69
|
CreateGraphqlEndpointSteps.selectUseShaclShapeGraphsOption();
|
|
@@ -175,12 +176,12 @@ describe('Graphql: create endpoint', () => {
|
|
|
175
176
|
|
|
176
177
|
// When I fill in the endpoint params
|
|
177
178
|
CreateGraphqlEndpointSteps.typeEndpointId('swapi-endpoint');
|
|
178
|
-
// The next button should
|
|
179
|
-
CreateGraphqlEndpointSteps.getNextStepButton().should('be.
|
|
179
|
+
// The next button should be enabled because the other fields are optional
|
|
180
|
+
CreateGraphqlEndpointSteps.getNextStepButton().should('be.enabled');
|
|
180
181
|
// When I fill in the endpoint label which is optional
|
|
181
182
|
CreateGraphqlEndpointSteps.typeEndpointLabel('Swapi endpoint');
|
|
182
|
-
// The next button should
|
|
183
|
-
CreateGraphqlEndpointSteps.getNextStepButton().should('be.
|
|
183
|
+
// The next button should be enabled
|
|
184
|
+
CreateGraphqlEndpointSteps.getNextStepButton().should('be.enabled');
|
|
184
185
|
// When I select the vocabulary prefix
|
|
185
186
|
CreateGraphqlEndpointSteps.selectVocabularyPrefix('voc');
|
|
186
187
|
// Then the next button should be enabled
|