{"id":18575933,"url":"https://github.com/datafabricrus/datastudio-sparql-connector","last_synced_at":"2025-04-10T08:30:58.748Z","repository":{"id":137023955,"uuid":"152220213","full_name":"DataFabricRus/datastudio-sparql-connector","owner":"DataFabricRus","description":"SPARQL Connector for Google Data Studio","archived":false,"fork":false,"pushed_at":"2019-01-10T09:22:46.000Z","size":155,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T18:52:34.188Z","etag":null,"topics":["data-studio","linked-data","rdf","sparql"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DataFabricRus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-10-09T09:00:37.000Z","updated_at":"2023-01-16T04:40:19.000Z","dependencies_parsed_at":"2024-01-06T13:09:48.930Z","dependency_job_id":"17fcf3ff-b043-4338-a983-ed982d9588fb","html_url":"https://github.com/DataFabricRus/datastudio-sparql-connector","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataFabricRus%2Fdatastudio-sparql-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataFabricRus%2Fdatastudio-sparql-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataFabricRus%2Fdatastudio-sparql-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataFabricRus%2Fdatastudio-sparql-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataFabricRus","download_url":"https://codeload.github.com/DataFabricRus/datastudio-sparql-connector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248185289,"owners_count":21061492,"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":["data-studio","linked-data","rdf","sparql"],"created_at":"2024-11-06T23:22:51.626Z","updated_at":"2025-04-10T08:30:58.406Z","avatar_url":"https://github.com/DataFabricRus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SPARQL Connector for Google Data Studio\n\nIt allows to load data from a SPARQL endpoint using SELECT queries.\n\n![Connector in the gallery](screenshot_ingallery.png)\n\n## Example report\n\n![Example report on Google Datastudio](screenshot_examplereport.png)\n\nHere is [link](https://datastudio.google.com/open/1Mbwa4VUue5Z9Ke4TsN6FcsQMiQX2uDPC) to the example report.\n\n## Getting started\n\n1. Open the [link](https://datastudio.google.com/datasources/create?connectorId=AKfycbzDHEBN9qHXPni4xO4P2cIZtyQ3rnYmzkCnVsnh9oEJrnhGe4MntBF-t1zAu2Lm-Vjc) to create a new Data Source.\n1. Once authorization has successfully completed, you're ready to configure the parameters. You should see the form:\n\n    ![Screenshot of the configuration page](screenshot_parameters.png)\n\n1. Enter the SPARQL endpoint URL, e.g. http://dbpedia.org/sparql\n1. Enter your SELECT query, e.g.\n\n    ```\n    PREFIX dbr: \u003chttp://dbpedia.org/resource/\u003e\n    PREFIX dbo: \u003chttp://dbpedia.org/ontology/\u003e\n    PREFIX foaf: \u003chttp://xmlns.com/foaf/0.1/\u003e\n    PREFIX xsd: \u003chttp://www.w3.org/2001/XMLSchema#\u003e\n\n    SELECT ?name ?gender ?birthDate WHERE {\n      ?person dbo:birthPlace dbr:Berlin ;\n              dbo:birthDate ?birthDate ;\n              foaf:name ?name ;\n              foaf:gender ?gender .\n\n       FILTER (?birthDate \u003e \"{dateRange.startDate}\"^^xsd:date \u0026\u0026 ?birthDate \u003c \"{dateRange.endDate}\"^^xsd:date) .\n    }\n    ```\n\n    The following variables are supported:\n\n    * `dateRange.startDate` - format `YYYY-MM-DD`, e.g. 2018-10-01,\n    * `dateRange.endDate` - format `YYYY-MM-DD`, e.g. 2018-10-01,\n    * `dateRange.numDays` - it's a positive integer value.\n\n    If you don't use `dateRange.startDate` or `dateRange.endDate`, then **Date range** filter won't be able to control the date range.\n\n1. Enter the schema of projections, e.g.\n\n    ```\n    [\n        {\"name\": \"name\", \"dataType\": \"STRING\"},\n        {\"name\": \"gender\", \"dataType\": \"STRING\"},\n        {\"name\": \"birtDate\", \"dataType\": \"STRING\"}\n    ]\n    ```\n\n    At this step is enough to set only data types for each projection, at the next step you'll be able to refine it. More about the schema elements, data types you can read in https://developers.google.com/datastudio/connector/semantics.\n\n1. Press **Connect** button and the next page is the same for all connectors.\n\n## Supported data type conversions\n\nGoogle Data Studio uses it's own formats for some of the data types. Therefore the connector automatically converts them. The following data types are supported:\n\n* `xsd:date` is converted to `YYYYMMDD`,\n* `xsd:dateTime` is converted to `YYYYMMDDHH`,\n* `xsd:duration` is converted to an integer corresponding to the number of seconds.\n\n## Default values\n\nThe connector may apply default values in query results which don't a value for a requested field. The default values:\n\nDatatype   | Default value\n-----------|--------------\n`NUMBER`   | `0`\n`BOOLEAN`  | `false`\n`STRING`   | `\"\"`\n\nIf you don't like these defaults, then write your query in a way when it can't have missing/empty values, especially in case of `GROUP BY`.\n\n## License\n\nMIT License\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatafabricrus%2Fdatastudio-sparql-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatafabricrus%2Fdatastudio-sparql-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatafabricrus%2Fdatastudio-sparql-connector/lists"}