Skip to content

Dictionary: Funders

VAISHALI ARORA edited this page Aug 17, 2020 · 24 revisions

Owner :

Vaishali Arora

Dictionary :

Funders

Find here :

https://github.com/petermr/openVirus/blob/master/dictionaries/funders/funders%20(1).xml

Source :

https://github.com/petermr/openVirus/blob/master/dictionaries/funders/funders_dictionary.md

SPARQL to ami :

My SPARQL dictionary funder is committed here : https://github.com/petermr/openVirus/blob/master/dictionaries/funders/funder.sparql.xml

Attributes in my SPARQL dictionary :

         <head>
		<variable name='item'/>
		<variable name='Crossref_funder_ID'/>
		<variable name='Crossref_funder_IDLabel'/>
		<variable name='country'/>
		<variable name='countryLabel'/>
		<variable name='funder'/>
		<variable name='funderLabel'/>
	</head>

*Can you find a way of extracting the funder

Me: @PMR it is there in FunderLabel. This query does fetch names of the funders. They are there in FunderLabel.

#Funders
SELECT ?FunderLabel ?Country ?CountryLabel ?instanceofLabel  ?Funder ?crossrefid  WHERE {
  ?Funder wdt:P3153 ?crossrefid .
  ?Funder wdt:P31 ?instanceof .
  ?Funder wdt:P17 ?Country .
  
 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
LIMIT 20000000

@PMR I converted my dictionary funder into the amidict format using the syntax :

amidict -v --dictionary funder --directory mydictionaries --input funder.sparql.xml create --informat wikisparqlxml

I got the output as: https://github.com/petermr/openVirus/blob/master/dictionaries/funders/funderdict_from_sparql.xml

Please check this and let me know if it is fine.

Clone this wiki locally