{"id":50404188,"url":"https://github.com/aksw/sparqlanalytics","last_synced_at":"2026-05-31T01:01:34.121Z","repository":{"id":140639538,"uuid":"9067656","full_name":"AKSW/SparqlAnalytics","owner":"AKSW","description":"Java based middleware/proxy framework for live analysis of SPARQL queries. Publish live SPARQL endpoint metrics using embeddable HTML/JavaScript widgets.","archived":false,"fork":false,"pushed_at":"2013-04-03T23:41:05.000Z","size":3454,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-18T03:02:48.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/AKSW.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}},"created_at":"2013-03-28T01:34:27.000Z","updated_at":"2020-08-16T21:02:23.000Z","dependencies_parsed_at":"2023-03-13T10:41:20.638Z","dependency_job_id":null,"html_url":"https://github.com/AKSW/SparqlAnalytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AKSW/SparqlAnalytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKSW%2FSparqlAnalytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKSW%2FSparqlAnalytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKSW%2FSparqlAnalytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKSW%2FSparqlAnalytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AKSW","download_url":"https://codeload.github.com/AKSW/SparqlAnalytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AKSW%2FSparqlAnalytics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33715211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-05-31T01:01:29.904Z","updated_at":"2026-05-31T01:01:34.095Z","avatar_url":"https://github.com/AKSW.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome to the SPARQL Analytics project.\n\nThis project aims to develop a java based middleware/proxy framework for live analysis of SPARQL queries. Publish live SPARQL endpoint metrics using embeddable HTML/JavaScript widgets.\n\n### Live Query Usage Stats\nAlthough the goal of this project is more amibitious than \"just\" providing a live chart of SPARQL endpoint activity, this is still a pretty neat \"by-product\", which we intend to develop further.\n\n#### Demo\n\nA demo can be seen here:\n* [FP7-ICT project partners dataset landing page](http://fp7-pp.publicdata.eu) shows the live chart (unfortunately requires IPv6 - if you know how to proxy websockets, please tell me :)\n* [SNORQL-SPARQL explorer](http://fp7-pp.publicdata.eu/snorql) lets you do the queries (at the moment only Select queries are handled in the live chart)\n\n![Screenshot](https://raw.github.com/AKSW/SparqlAnalytics/master/images/2013-04-04-sparql-analytics-screenshot-fp7-pp.publicdata.eu.png)\n\n\n#### Server Setup\nA note in advance: currently the server is [CORS](http://enable-cors.org) enabled on all paths, so you *and anyone else* should be able to do cross site requests from JavaScript.\n\nClone the project and run\n\n    maven clean install\n\nFirst, you need a postgres database. All query activity will be written to it.\n\n    sudo apt-get install postgres\n    # ... further configuration is up to you\n    \n    # Create a DB called 'sparql_analytics'\n    createdb sparql_analytics\n    \n    # Load the core schema\n    psql -d sparql_analytics -f sparql-analytics-core/schema.sql\n\nAn example server configuration is located under `sparql-analytics-server/config/example/sparql-analytics/platform.properties`. Either modify it directly, or better: create a copy of it and edit the copy:\n  \n    mkdir sparql-analytics-server/config/myconf\n    cp -rf sparql-analytics-server/config/example/* sparql-analytics-server/config/myconf\n\nNote that the `sparqlify-analytics` directory under your config directory (i.e. `example` or `myconf`) corresponds to the context path under which the server will run. So this is not optional!\n\nUnder `bin` you find the script to run the server:\n\n    cd bin\n    ./run-platform sparql-analytics-server/config/myconf\n\nBy default, the server will start on port 5522. Try your browser or curl to test:\n\n[http://localhost:5522/sparql-analytics/api/sparql?query=Select { ?s ?p ?o } Limit 1](http://localhost:5522/sparql-analytics/api/sparql?query=Select%20%2A%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20Limit%201)\n\n    curl 'http://localhost:5522/sparql-analytics/api/sparql?query=Select%20%2A%20%7B%20%3Fs%20%3Fp%20%3Fo%20%7D%20Limit%201'\n\n#### Client Setup\n\nThe client chart widget is in the `sparql-analytics-client` module. To build the minimized .js file, run\n\n    cd sparql-analytics-client\n    mvn package\n    \n    # Link the built js file to the webapp js directory, because our HTML file in the next step references it\n    # CARE: Note the {version} placeholder in the next line :)\n    \n    ln -s target/sparql-analytics-client-{version}/webapp/js/sparql-analytics-client.min.js src/main/webapp/js/sparql-analytics-client.min.js\n\n\nLink the client HTML/JavaScript code to your webserver directory (requires you to allow your webserver to follow symlinks)\n\n    ln -s /path/to/repo/sparql-analytics-client/src/main/webapp /var/www/sparql-analytics-client\n\nNow visit the following file [index-sparql-analytics-minimal.html](https://github.com/AKSW/SparqlAnalytics/blob/master/sparql-analytics-client/src/main/webapp/index-sparql-analytics-minimal.html) for a minimal example: \n\n[http://localhost/sparql-analytics-client/index-sparql-analytics-minimal.html](http://localhost/sparql-analytics-client/index-sparql-analytics-minimal.html)\n\nYou can embad the chart widget by only integrating the following snippet (with properly adjusted paths) into your web page:\n\n    \u003chtml\u003e\n    \u003cbody\u003e\n        \u003cdiv id=\"histogram\"\u003e\u003c/div\u003e\n\n        \u003cscript type=\"text/javascript\" src=\"js/lib/jquery/1.9.1/jquery-1.9.1.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"js/lib/jquery-atmosphere/jquery.atmosphere.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"js/bootstrap.min.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"js/lib/underscore/1.4.4/underscore.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"js/lib/highcharts/2.2.5/js/highcharts.js\"\u003e\u003c/script\u003e\n        \u003cscript type=\"text/javascript\" src=\"js/lib/namespacedotjs/a28da387ce/Namespace.js\"\u003e\u003c/script\u003e\n\n        \u003cscript type=\"text/javascript\" src=\"js/sparql-analytics-client.min.js\"\u003e\u003c/script\u003e\n\n        \u003cscript type=\"text/javascript\"\u003e\n            $(document).ready(function() {\t\t\t\n                new SparqlAnalytics.WidgetChartQueryLoad({\n                    el: '#histogram',\n                    apiUrl: 'http://localhost:5522/sparql-analytics/api/live'\n                });\n            });\n        \u003c/script\u003e\n\n    \u003c/body\u003e\n    \u003c/html\u003e\n\n\n### License\nWill be clarified shortly.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksw%2Fsparqlanalytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faksw%2Fsparqlanalytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faksw%2Fsparqlanalytics/lists"}