Git Product home page Git Product logo

transparency-linked-data's Introduction

= Transparency International Linked Data =

== What is this? ==
Contains Google Refine + RDF Extension, and Bash scripts that:
* transforms original data in tabular format from Transparency International 
http://transparency.org/ to RDF Turtle format.
* helps to deploy the RDF data:
** tranforms all data under same graph into single N-Triples file
** generates LODStats for the data
** creates datadumps
** loads to RDF store

== Purpose ==
For fun and profit.

== Website ==
http://transparency.270a.info/

== License ==
* Code (scripts): Apache License, Version 2.0 (See also LICENSE file)
* Data (RDF triples): CC0 1.0 Universal (CC0 1.0) Public Domain Dedication

== Creator ==
Sarven Capadisli http://csarven.ca/#i

transparency-linked-data's People

Contributors

csarven avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

0981225722

transparency-linked-data's Issues

CPI2013 branch

Can I create a new branch for CPI2013 or is this up to the owner of the repository? I just don't want to mess things up or break something ;)

CPI generation method

The CPI2012 is calculated by subtracting the mean of the data (13 sources) and dividing them by the standard deviation and then rescaled to have a mean 45 and standard deviation 20..

image

I searched for a term for this calculation on dbpedia, but could not find anything. Do you have a hint where I can possibly find a term for such a calculation?

Filtering triples

If you run the file tarql.mappingCPI2012.sparql from the branch CPI2012 with tarql you will see that it will create all triples, including the ones where the score from the surveys are equal to 0.
So the output is as follows (example for African Development Bank Governance Ratings, Limited to 1 set of triples):
...
http://transparency.270a.info/dataset/corruption-perceptions-index/2012/sources/african-development-bank-country-policy-and-institutional-assessment-governance-ratings/2012/DK
rdf:type qb:Observation ;
rdfs:label "Corruption Perception Index 2012 for Denmark from African Development Bank Governance Ratings in 2012" ;
dcterms:source http://cpia.afdb.org/ ;
qb:dataSet "http://transparency.270a.info/dataset/corruption-perceptions-index/2012/sources" ;
sdmx-attribute:adjustment
http://transparency.270a.info/classification/attribute/matching-percentiles ;
sdmx-dimension:refArea
http://transparency.270a.info/classification/country/DK ;
sdmx-dimension:refPeriod
http://reference.data.gov.uk/id/year/2012 ;
property:score "0"^^xsd:decimal ;
property:source http://transparency.270a.info/classification/source/african-development-bank-country-policy-and-institutional-assessment-governance-ratings/2012 .
...
You see that these triples should not be generated, since the property:score is equal to "0"^^xsd:decimal ; --> e.g There was no survey for Denmark from African Development Bank.

I tried to exclude these triples with the following:

  • MINUS{?observationAFDB property:score "0"^^xsd:decimal} //this didn't work
  • FILTER(?scoreAFDB < 1) //this filtered everything e.g --> this filtered every triple, which was generated for Denmark (also triples where there were actually surveys)
  • and OPTIONAL{} //this had no impact

Do you have a hint or idea how I can approach this? Thx

dsd file

You told me to crate the dsd file for the CPI2102. So I looked at the meta.ttl file in the data folder of the master branch. So is it the aim to extend this meta.ttl file for the CPI2012 or create a new one?

Second question:
I see, that it says which URI represent what (with comments and properties). But I can't see the final propose of the file. Can you explain me what this file finally serves for?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.