Page MenuHomePhabricator
Feed Advanced Search

Oct 27 2018

Laffano added a comment to T208036: Scrape chemical names and data for WikiData from chemical database chemspider.com.

Here is the small quickstatements code

Oct 27 2018, 1:39 PM · Wiki-Techstorm-2019, Wikidata, patch-welcome
Laffano added a comment to T208036: Scrape chemical names and data for WikiData from chemical database chemspider.com.

os.system(command) in python can be used to run terminal programs in python.

Oct 27 2018, 9:49 AM · Wiki-Techstorm-2019, Wikidata, patch-welcome

Oct 26 2018

Laffano added a comment to T208036: Scrape chemical names and data for WikiData from chemical database chemspider.com.

The file make to upload the file will be written to Java due to problems with unicode

Oct 26 2018, 3:34 PM · Wiki-Techstorm-2019, Wikidata, patch-welcome
Laffano added a comment to T208036: Scrape chemical names and data for WikiData from chemical database chemspider.com.

SELECT ?chemical_compound ?chemical_compoundLabel WHERE {

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?chemical_compound wdt:P31 wd:Q11173.

}
LIMIT 100

Oct 26 2018, 2:13 PM · Wiki-Techstorm-2019, Wikidata, patch-welcome
Laffano added a comment to T208036: Scrape chemical names and data for WikiData from chemical database chemspider.com.

str.find(stringName, stringToFind, startPos) will return -1 if not found

Oct 26 2018, 12:38 PM · Wiki-Techstorm-2019, Wikidata, patch-welcome