diff --git a/CHANGELOG.md b/CHANGELOG.md
index ad716e32..71bd57fb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Added
+
+- A group of generic query examples was added (#135).
+- Some icons for well known query groups were added (#146).
+
## [1.2.2] - 2024-06-27
### Added
diff --git a/cypress/e2e/custom-query-editor.cy.js b/cypress/e2e/custom-query-editor.cy.js
index 831f326b..d5d78d7f 100644
--- a/cypress/e2e/custom-query-editor.cy.js
+++ b/cypress/e2e/custom-query-editor.cy.js
@@ -43,8 +43,8 @@ PREFIX oo:
PREFIX ao:
PREFIX rdf:
PREFIX rdfs:
-PREFIX d:
-PREFIX o:
+PREFIX d:
+PREFIX o:
SELECT DISTINCT ?component ?componentName ?recycledContentPercentage
WHERE {
@@ -60,7 +60,7 @@ ORDER BY ?componentName
cy.get('button[type="submit"]').click();
// Checking if the query works
- cy.contains("http://www/example.com/data/component-c01").should('exist');
+ cy.contains("https://www.example.com/data/component-c01").should('exist');
});
it("Check if all possible parameters are filled in with parameterized URL", () => {
@@ -227,8 +227,8 @@ PREFIX oo:
PREFIX ao:
PREFIX rdf:
PREFIX rdfs:
-PREFIX d:
-PREFIX o:
+PREFIX d:
+PREFIX o:
SELECT ?component ?componentName ?material ?materialName ?percentage
WHERE {
@@ -263,7 +263,7 @@ WHERE {
)
cy.get('button[type="submit"]').click();
- cy.contains("http://www/example.com/data/component-c01").should('exist');
+ cy.contains("https://www.example.com/data/component-c01").should('exist');
})
diff --git a/cypress/e2e/fetch-status.cy.js b/cypress/e2e/fetch-status.cy.js
index 9f85db78..ae85c3d8 100644
--- a/cypress/e2e/fetch-status.cy.js
+++ b/cypress/e2e/fetch-status.cy.js
@@ -42,10 +42,12 @@ describe("Fetch Status", () => {
cy.get('input[name="idp"]').type("http://localhost:8080");
cy.contains("Login").click();
- cy.get("input#email").type("hello@example.com");
- cy.get("input#password").type("abc123");
- cy.contains("button", "Log in").click();
- cy.contains("button", "Authorize").click();
+ cy.origin('http://localhost:8080', () => {
+ cy.get("input#email").type("hello@example.com");
+ cy.get("input#password").type("abc123");
+ cy.contains("button", "Log in").click();
+ cy.contains("button", "Authorize").click();
+ });
cy.url().should("eq", "http://localhost:5173/");
diff --git a/cypress/e2e/log-in.cy.js b/cypress/e2e/log-in.cy.js
index d067850d..23054637 100644
--- a/cypress/e2e/log-in.cy.js
+++ b/cypress/e2e/log-in.cy.js
@@ -41,10 +41,12 @@ describe("Log in", () => {
.type("http://localhost:8080/example/profile/card#me");
cy.contains("Login").click();
- cy.get("input#email").type("hello@example.com");
- cy.get("input#password").type("abc123");
- cy.contains("button", "Log in").click();
- cy.contains("button", "Authorize").click();
+ cy.origin('http://localhost:8080', () => {
+ cy.get("input#email").type("hello@example.com");
+ cy.get("input#password").type("abc123");
+ cy.contains("button", "Log in").click();
+ cy.contains("button", "Authorize").click();
+ });
cy.url().should("eq", "http://localhost:5173/");
});
@@ -74,11 +76,13 @@ describe("Log in", () => {
cy.get('input[name="idp"]').type("http://localhost:8080");
cy.contains("Login").click();
- cy.get("input#email").type("hello@example.com");
- cy.get("input#password").type("abc123");
- cy.contains("button", "Log in").click();
- cy.contains("button", "Authorize").click();
-
+ cy.origin('http://localhost:8080', () => {
+ cy.get("input#email").type("hello@example.com");
+ cy.get("input#password").type("abc123");
+ cy.contains("button", "Log in").click();
+ cy.contains("button", "Authorize").click();
+ });
+
cy.url().should("eq", "http://localhost:5173/");
cy.contains("General examples").click();
diff --git a/cypress/e2e/sources-from-indexfile.cy.js b/cypress/e2e/sources-from-indexfile.cy.js
index 962ed0e3..a5f7012a 100644
--- a/cypress/e2e/sources-from-indexfile.cy.js
+++ b/cypress/e2e/sources-from-indexfile.cy.js
@@ -14,7 +14,7 @@ describe("Sources from index file", () => {
cy.get('.information-box').contains('Sources: 3');
// Check if correct data is displayed
- cy.contains("http://www/example.com/data/component-c01");
+ cy.contains("https://www.example.com/data/component-c01");
cy.contains("Component 1");
cy.contains("Material 1");
});
@@ -33,7 +33,7 @@ describe("Sources from index file", () => {
cy.get('.information-box').contains('Sources: 4');
// Check if correct data is still displayed even if one source was unauthorized
- cy.contains("http://www/example.com/data/component-c01");
+ cy.contains("https://www.example.com/data/component-c01");
cy.contains("Component 1");
cy.contains("Material 1");
});
@@ -52,7 +52,7 @@ describe("Sources from index file", () => {
cy.get('.information-box').contains('Sources: 4');
// Check if correct data is still displayed even if one source was unauthorized and different sources were merged
- cy.contains("http://www/example.com/data/component-c01");
+ cy.contains("https://www.example.com/data/component-c01");
cy.contains("Component 1");
cy.contains("Material 1");
});
@@ -72,7 +72,7 @@ describe("Sources from index file", () => {
});
- cy.contains("http://www/example.com/data/component-c01").should("not.exist");
+ cy.contains("https://www.example.com/data/component-c01").should("not.exist");
cy.contains("Component 1").should("not.exist");
cy.contains("Material 1").should("not.exist");
@@ -86,18 +86,20 @@ describe("Sources from index file", () => {
.type("http://localhost:8080/example/profile/card#me");
cy.contains("Login").click();
- cy.get("input#email").type("hello@example.com");
- cy.get("input#password").type("abc123");
- cy.contains("button", "Log in").click();
- cy.contains("button", "Authorize").click();
-
+ cy.origin('http://localhost:8080', () => {
+ cy.get("input#email").type("hello@example.com");
+ cy.get("input#password").type("abc123");
+ cy.contains("button", "Log in").click();
+ cy.contains("button", "Authorize").click();
+ });
+
cy.url().should("eq", "http://localhost:5173/");
//now try again
cy.contains("For testing only").click();
cy.contains("Sources from an index file (requiring authentication)").click();
- cy.contains("http://www/example.com/data/component-c01").should("not.exist");
+ cy.contains("https://www.example.com/data/component-c01").should("not.exist");
cy.contains("Component 1").should("exist");
cy.contains("Material 1").should("exist");
})
diff --git a/cypress/e2e/sources-info.cy.js b/cypress/e2e/sources-info.cy.js
index 537f9927..02961852 100644
--- a/cypress/e2e/sources-info.cy.js
+++ b/cypress/e2e/sources-info.cy.js
@@ -56,10 +56,12 @@ describe("Sources info", () => {
cy.get('input[name="idp"]').type("http://localhost:8080");
cy.contains("Login").click();
- cy.get("input#email").type("hello@example.com");
- cy.get("input#password").type("abc123");
- cy.contains("button", "Log in").click();
- cy.contains("button", "Authorize").click();
+ cy.origin('http://localhost:8080', () => {
+ cy.get("input#email").type("hello@example.com");
+ cy.get("input#password").type("abc123");
+ cy.contains("button", "Log in").click();
+ cy.contains("button", "Authorize").click();
+ });
cy.url().should("eq", "http://localhost:5173/");
diff --git a/initial-pod-data/boms$.ttl b/initial-pod-data/boms$.ttl
index 1155e2ee..22e7fc3e 100644
--- a/initial-pod-data/boms$.ttl
+++ b/initial-pod-data/boms$.ttl
@@ -1,58 +1,58 @@
- a ;
- ,
- , .
-
- a ;
- ,
- , ,
- , ,
- .
-
- a ;
- ,
- .
-
- a ;
- ;
- 60 .
-
- a ;
- ;
- 30 .
-
- a ;
- ;
- 10 .
-
- a ;
- ;
- 40 .
-
- a ;
- ;
- 20 .
-
- a ;
- ;
- 25 .
-
- a ;
- ;
- 7 .
-
- a ;
- ;
- 5 .
-
- a ;
- ;
- 3 .
-
- a ;
- ;
- 85 .
-
- a ;
- ;
- 15 .
+ a ;
+ ,
+ , .
+
+ a ;
+ ,
+ , ,
+ , ,
+ .
+
+ a ;
+ ,
+ .
+
+ a ;
+ ;
+ 60 .
+
+ a ;
+ ;
+ 30 .
+
+ a ;
+ ;
+ 10 .
+
+ a ;
+ ;
+ 40 .
+
+ a ;
+ ;
+ 20 .
+
+ a ;
+ ;
+ 25 .
+
+ a ;
+ ;
+ 7 .
+
+ a ;
+ ;
+ 5 .
+
+ a ;
+ ;
+ 3 .
+
+ a ;
+ ;
+ 85 .
+
+ a ;
+ ;
+ 15 .
diff --git a/initial-pod-data/components$.ttl b/initial-pod-data/components$.ttl
index c79e9915..5fdf77c1 100644
--- a/initial-pod-data/components$.ttl
+++ b/initial-pod-data/components$.ttl
@@ -1,15 +1,15 @@
- a ;
- ;
- "Component 1";
- 80 .
+ a ;
+ ;
+ "Component 1";
+ 80 .
- a ;
- ;
- "Component 2";
- 20 .
+ a ;
+ ;
+ "Component 2";
+ 20 .
- a ;
- ;
- "Component 3";
- 0 .
+ a ;
+ ;
+ "Component 3";
+ 0 .
diff --git a/initial-pod-data/materials$.ttl b/initial-pod-data/materials$.ttl
index e16e068c..2a4998d7 100644
--- a/initial-pod-data/materials$.ttl
+++ b/initial-pod-data/materials$.ttl
@@ -1,33 +1,33 @@
- a ;
- "Material 1" .
+ a ;
+ "Material 1" .
- a ;
- "Material 2" .
+ a ;
+ "Material 2" .
- a ;
- "Material 3" .
+ a ;
+ "Material 3" .
- a ;
- "Material 4" .
+ a ;
+ "Material 4" .
- a ;
- "Material 5" .
+ a ;
+ "Material 5" .
- a ;
- "Material 6" .
+ a ;
+ "Material 6" .
- a ;
- "Material 7" .
+ a ;
+ "Material 7" .
- a ;
- "Material 8" .
+ a ;
+ "Material 8" .
- a ;
- "Material 9" .
+ a ;
+ "Material 9" .
- a ;
- "Material 10" .
+ a ;
+ "Material 10" .
- a ;
-