Knowledge-Graph-Hub / kg-covid-19

An instance of KG Hub to produce a knowledge graph for COVID-19 response.
https://github.com/Knowledge-Graph-Hub/kg-covid-19/wiki
BSD 3-Clause "New" or "Revised" License
79 stars 26 forks source link

combined_scores from STRING ingest should be emitted as integers not strings #294

Closed justaddcoffee closed 4 years ago

justaddcoffee commented 4 years ago

Describe the bug

Interaction scores for edges from the STRING ingest are present as integers (0-1000) in the 'combined_score' edge property:

subject edge_label  object  relation    provided_by combined_score  neighborhood    neighborhood_transferred    fusion  cooccurence homology    coexpression    coexpression_transferred    experiments experiments_transferred database    database_transferred    textmining  textmining_transferred
ENSEMBL:ENSP00000000233 biolink:interacts_with  ENSEMBL:ENSP00000445175 RO:0002434  STRING  482 0   0   0   0   0   0   0   423 83  0   0   99  42

but these end up as strings in the RDF

To Reproduce

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE {
  ?sub <https://www.example.org/UNKNOWN/combined_score> ?obj .
} LIMIT 10
1 "423"^^http://www.w3.org/2001/XMLSchema#string
2 "423"^^http://www.w3.org/2001/XMLSchema#string

Expected behavior

These combined_scores should be integers, not strings

Version

Build queried on ~Jul 21, 2020

deepakunni3 commented 4 years ago

This is now fixed.

justaddcoffee commented 4 years ago

Thanks @deepakunni3 ! +1