{"id":22606486,"url":"https://github.com/treecg/tree-guided-link-traversal-query-processing-evaluation","last_synced_at":"2025-03-28T21:47:21.218Z","repository":{"id":180961320,"uuid":"610323928","full_name":"TREEcg/TREE-Guided-Link-Traversal-Query-Processing-Evaluation","owner":"TREEcg","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-04T06:24:57.000Z","size":49681,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T08:36:47.223Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TREEcg.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-06T14:45:39.000Z","updated_at":"2024-07-04T06:25:00.000Z","dependencies_parsed_at":"2025-02-03T08:40:51.960Z","dependency_job_id":null,"html_url":"https://github.com/TREEcg/TREE-Guided-Link-Traversal-Query-Processing-Evaluation","commit_stats":null,"previous_names":["treecg/tree-guided-link-traversal-query-processing-evaluation"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TREEcg%2FTREE-Guided-Link-Traversal-Query-Processing-Evaluation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TREEcg%2FTREE-Guided-Link-Traversal-Query-Processing-Evaluation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TREEcg%2FTREE-Guided-Link-Traversal-Query-Processing-Evaluation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TREEcg%2FTREE-Guided-Link-Traversal-Query-Processing-Evaluation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TREEcg","download_url":"https://codeload.github.com/TREEcg/TREE-Guided-Link-Traversal-Query-Processing-Evaluation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246106661,"owners_count":20724400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-08T14:13:59.143Z","updated_at":"2025-03-28T21:47:21.185Z","avatar_url":"https://github.com/TREEcg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TREE-Guided-Link-Traversal-Query-Processing-Evaluation\n\n## Dependencies\n- [Nodejs 18 or higher](https://nodejs.org/en)\n- [Rust](https://www.rust-lang.org/fr)\n\n## Prepare the data\n\n**Warning: Do not forget to clone the submodule**\n### Clone the submodule \n```zsh\ngit submodule init \ngit submodule update\n```\n\nor\n\n```zsh\ngit clone --recurse-submodules -j8 {address of the repo}\n```\n\n### Generate fragments\n```zsh\n./run_evaluation.sh install-comunica\nyarn install\n./run_evaluation.sh install-injestor\n./run_evaluation.sh download-dataset \n```\nto generate the fragmentation with 100 nodes\n```zsh\n./run_evaluation.sh dahcc-1-participant-one-ary-tree-100 --server\n```\nto generate the fragmentation with 1000 nodes\n```zsh\n./run_evaluation.sh dahcc-1-participant-one-ary-tree-1000 --server\n```\n\n## Queries\n\nQ1\n```sparql\nPREFIX sosa: \u003chttp://www.w3.org/ns/sosa/\u003e \nPREFIX xsd: \u003chttp://www.w3.org/2001/XMLSchema#\u003e \nPREFIX wgs: \u003chttp://www.w3.org/2003/01/geo/wgs84_pos#\u003e\nPREFIX etsi: \u003chttps://saref.etsi.org/core/\u003e\n    \nSELECT * WHERE {\n    ?s etsi:hasTimestamp ?t.\n?s etsi:hasValue ?result.\n?s etsi:measurementMadeBy ?sensor.\n?sensor \u003chttps://dahcc.idlab.ugent.be/Ontology/Sensors/analyseStateOf\u003e ?stateOf.\n?sensor \u003chttps://saref.etsi.org/core/measuresProperty\u003e \u003chttps://dahcc.idlab.ugent.be/Homelab/SensorsAndActuators/energy.consumption\u003e\n\n    FILTER(?t=\"2022-01-03T10:57:54.000000\"^^xsd:dateTime)\n}\n```\n\nQ2\n```sparql\nPREFIX sosa: \u003chttp://www.w3.org/ns/sosa/\u003e \nPREFIX xsd: \u003chttp://www.w3.org/2001/XMLSchema#\u003e \nPREFIX wgs: \u003chttp://www.w3.org/2003/01/geo/wgs84_pos#\u003e\nPREFIX etsi: \u003chttps://saref.etsi.org/core/\u003e\n    \nSELECT * WHERE {\n    ?s etsi:hasTimestamp ?t.\n?s etsi:hasValue ?result.\n?s etsi:measurementMadeBy ?sensor.\n?sensor \u003chttps://dahcc.idlab.ugent.be/Ontology/Sensors/analyseStateOf\u003e ?stateOf.\n?sensor \u003chttps://saref.etsi.org/core/measuresProperty\u003e \u003chttps://dahcc.idlab.ugent.be/Homelab/SensorsAndActuators/environment.light\u003e\n\n    FILTER(?t=\"2022-01-03T19:54:22.469000\"^^xsd:dateTime)\n}\n```\n\nQ3\n```sparql\nPREFIX sosa: \u003chttp://www.w3.org/ns/sosa/\u003e \nPREFIX xsd: \u003chttp://www.w3.org/2001/XMLSchema#\u003e \nPREFIX wgs: \u003chttp://www.w3.org/2003/01/geo/wgs84_pos#\u003e\nPREFIX etsi: \u003chttps://saref.etsi.org/core/\u003e\n    \nSELECT * WHERE {\n    ?s etsi:hasTimestamp ?t.\n?s etsi:hasValue ?result.\n?s etsi:measurementMadeBy ?sensor.\n?sensor \u003chttps://dahcc.idlab.ugent.be/Ontology/Sensors/analyseStateOf\u003e ?stateOf.\n?sensor \u003chttps://saref.etsi.org/core/measuresProperty\u003e \u003chttps://dahcc.idlab.ugent.be/Homelab/SensorsAndActuators/energy.consumption\u003e\n\n    FILTER(?t\u003e=\"2022-01-03T15:00:00.000000\"^^xsd:dateTime \u0026\u0026 ?t\u003c\"2022-01-03T15:30:00.000000\"^^xsd:dateTime)\n}\n```\n\nQ4\n```sparql\nPREFIX sosa: \u003chttp://www.w3.org/ns/sosa/\u003e \nPREFIX xsd: \u003chttp://www.w3.org/2001/XMLSchema#\u003e \nPREFIX wgs: \u003chttp://www.w3.org/2003/01/geo/wgs84_pos#\u003e\nPREFIX etsi: \u003chttps://saref.etsi.org/core/\u003e\n    \nSELECT * WHERE {\n    ?s etsi:hasTimestamp ?t.\n?s etsi:hasValue ?result.\n?s etsi:measurementMadeBy ?sensor.\n?sensor \u003chttps://dahcc.idlab.ugent.be/Ontology/Sensors/analyseStateOf\u003e ?stateOf.\n?sensor \u003chttps://saref.etsi.org/core/measuresProperty\u003e \u003chttps://dahcc.idlab.ugent.be/Homelab/SensorsAndActuators/energy.consumption\u003e\n\n    FILTER((?t\u003e=\"2022-01-03T15:00:00.000000\"^^xsd:dateTime \u0026\u0026 ?t\u003c\"2022-01-03T20:00:00.000000\"^^xsd:dateTime) \u0026\u0026 !(?t\u003e=\"2022-01-03T15:10:00.000000\"^^xsd:dateTime \u0026\u0026 ?t\u003c\"2022-01-03T15:40:00.000000\"^^xsd:dateTime))\n}\n```\n\n## Run the queries\nTo run the queries you have to run the following command schema.\n```zsh\nnode comunica_runner.mjs -f ./evaluation/query/{}.ttl -m {TREE-GUIDED|TREE} -r http://localhost:8080/0.ttl -d http://localhost:8080/metadata.ttl  \n```\nFor example\n\n```zsh\nnode comunica_runner.mjs -f ./evaluation/query/Q2.ttl -m TREE-GUIDED -r http://localhost:8080/0.ttl -d http://localhost:8080/metadata.ttl  \n```\n\nIt will output something like\n\n```json\n{\"nResults\":1,\"timeExec\":5111.714145,\"nRequest\":3}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreecg%2Ftree-guided-link-traversal-query-processing-evaluation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreecg%2Ftree-guided-link-traversal-query-processing-evaluation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreecg%2Ftree-guided-link-traversal-query-processing-evaluation/lists"}