cfkg

Data cleaning steps and mappings used to transform data from different sources to RDF

https://github.com/tec-toolkit/cfkg

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Data cleaning steps and mappings used to transform data from different sources to RDF

Basic Info
  • Host: GitHub
  • Owner: TEC-Toolkit
  • License: apache-2.0
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage:
  • Size: 12.4 MB
Statistics
  • Stars: 1
  • Watchers: 4
  • Forks: 2
  • Open Issues: 15
  • Releases: 1
Created over 3 years ago · Last pushed about 1 year ago
Metadata Files
Readme Contributing License Citation

README.md

Conversion factor Knowledge Graph

DOI

This repository contains the data cleaning steps and mappings of the conversion factor knowledge graph. At the moment, public data includes:

  • BEIS-UK, from years 2016-2022

    • Data is licensed under an Open Government license
    • Each data source used is linked in each conversion factor in the KG
  • Machine Learning impact calculator, from years 2002-2018

    • Data is licensed under a MIT license
    • Each data source used is linked in each conversion factor in the KG

Work in progress:

  • EPA

Query interface

A derreferenceable linked data browser is available at: https://query.cf.linkeddata.es/query, based on https://github.com/TEC-Toolkit/rdf_explorer.

To see information about a conversion factor, just click on its URL, e.g., https://w3id.org/ecfkg/i/UK/BEIS/2021/CF_1.

SPARQL endpoint

All data is loaded in https://sparql.cf.linkeddata.es/cf, in the cf dataset. To perform a query, just URL encode the query:

sh curl https://sparql.cf.linkeddata.es/cf -X POST --data 'query=YOUR_QUERY_URL_ENCODED' -H 'Accept: application/sparql-results+json,*/*;q=0.9'

For example, the following query retrieves the conversion factors that involve "Butane" (and their corresponding basic metadata)

SPARQL:

```sparql PREFIX ecfo: https://w3id.org/ecfo# PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#

SELECT ?cf ?source ?context ?target ?scope WHERE { ?cf ecfo:hasTag/rdfs:label "Butane"@en. ?cf ecfo:hasEmissionTarget/rdfs:label ?target. ?cf ecfo:hasEmissionSource/rdfs:label ?source. ?cf ecfo:hasAdditionalContext ?context. ?cf ecfo:hasScope ?scope. } ```

Corresponding curl command:

sh curl https://sparql.cf.linkeddata.es/cf -X POST --data 'query=PREFIX+ecfo%3A+%3Chttps%3A%2F%2Fw3id.org%2Fecfo%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0Aselect++%3Fcf+%3Fsource+%3Fcontext+%3Ftarget+%3Fscope+where%7B%0A++++%3Fcf+ecfo%3AhasTag%2Frdfs%3Alabel+%22Butane%22%40en.%0A++++%3Fcf+ecfo%3AhasEmissionTarget%2Frdfs%3Alabel+%3Ftarget.%0A++++%3Fcf+ecfo%3AhasEmissionSource%2Frdfs%3Alabel+%3Fsource.%0A++++%3Fcf+ecfo%3AhasAdditionalContext+%3Fcontext.%0A++++%3Fcf+ecfo%3AhasScope+%3Fscope.%0A%7D' -H 'Accept: application/sparql-results+json,*/*;q=0.9'

Tutorial

Have a look at our tutorial, showing how to plot the evolution of a conversion factor through the years, together with the corresponding SPARQL queries needed to adapt it to your own.

Contributing

Please read CONTRIBUTING.md for details on the process for submitting pull requests to this repository.

Owner

  • Name: TEC-Toolkit
  • Login: TEC-Toolkit
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: Conversion factor Knowledge Graph
message: 'If you use this resource, please cite it as below.'
type: software
authors:
  - family-names: Markovic
    given-names: Milan
    orcid: 'https://orcid.org/0000-0002-5477-287X'
  - family-names: Garijo
    given-names: Daniel
    orcid: 'https://orcid.org/0000-0003-0454-7145'
  - family-names: Germano
    given-names: Stefano
    orcid: 'https://orcid.org/0000-0001-6993-0618'
  - family-names: Naja
    given-names: Iman
    orcid: 'https://orcid.org/0000-0001-6634-3266'
version: 1.0.0
date-released: '2023-05-09'
doi: 10.5281/zenodo.7916096 
preferred-citation:
  authors:
    - family-names: Markovic
      given-names: Milan
      orcid: 'https://orcid.org/0000-0002-5477-287X'
    - family-names: Garijo
      given-names: Daniel
      orcid: 'https://orcid.org/0000-0003-0454-7145'
    - family-names: Germano
      given-names: Stefano
      orcid: 'https://orcid.org/0000-0001-6993-0618'
    - family-names: Naja
      given-names: Iman
      orcid: 'https://orcid.org/0000-0001-6634-3266'
  title: "TEC: Transparent Emissions Calculation Toolkit"
  type: article
  year: 2023
  doi: 10.1007/978-3-031-47243-5_5

GitHub Events

Total
  • Issues event: 3
  • Issue comment event: 3
  • Push event: 5
  • Pull request review event: 2
  • Pull request review comment event: 3
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1
Last Year
  • Issues event: 3
  • Issue comment event: 3
  • Push event: 5
  • Pull request review event: 2
  • Pull request review comment event: 3
  • Pull request event: 2
  • Fork event: 1
  • Create event: 1

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 2
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • m-markovic (3)
  • adrianramos13 (1)
  • dgarijo (1)
Pull Request Authors
  • dgarijo (1)
  • stefanogermano (1)
  • adrianramosolive (1)
Top Labels
Issue Labels
documentation (1) bug (1)
Pull Request Labels
bug (1) enhancement (1)