How to retrieve a list using Wikidata's web API? - wikidata

I need to simply retrieve this footballers list in JSON format :
https://en.wikipedia.org/wiki/List_of_footballers_in_England_by_number_of_league_appearances
So i'm trying out this wikidata query ( with the wikidata ID linked to this page):
https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&ids=Q6620948
But i can see no footballer name in the result , only a few descriptions, that's all !

That list isn't actually stored in Wikidata. It's only stored as human edited text on the Wikipedia page.
You can access that content by either using the Wikipedia API or data dumps. You could also just use generic web scraping tools.

Related

Handling Json Objects from SQL server DB at Fastreport

its my first time using fastreport, i am using FR with a asp.net web api, after searching i have decieded to get the data from db using stored proc. and get whatever pass whatever filter im using from the report from the front-end to the api (example like a certain Id of the object i wanna create a report for) and then pass this value to the stored proc. i export to the FR and pass this value to my parameters, i don't know if this is the best way to use FR with my api so i'm open to any suggestions. Now my main problem is that i have json obj in my SQL DB for localization(ex: the Name obj is stored like that {"en":"TestAcc2","fr":"test"}) so how can i convert a certain language from a field like this to show in the report, i have found resources on how to deal with a whole json DB but i only want to deserlizae this field so any help on how i could do it ?

Getting list of licenseUrls

I'm trying to retrieve a list of used licences from ProGet to build a summary report.
I'm looking in the dbo.FeedLicenseUrls table which appears to have exactly what I want, but it's empty. What is required for this table to be populated?
Do you mean a list of licenses used by all packages in a feed? In that case, it has to be done on a feed-by-feed basis since it is stored in the metadata specific to the feed type (e.g. NpmPackageVersions.PackageJson_Bytes or RubyGemVersions.Metadata_Bytes).
To get this data for NuGet for example, you can query the feed at this URL to get all the license types in XML and parse the response body:
http://proget/nuget/{feedName}/search()?$select=LicenseUrl
As an FYI, The FeedLicenseUrls table is used to filter licenses before they are served to their respective clients, and is verified at request time.

Is it possible to fetch data from multiple Google Analytics tables in one request?

Looking at the API documentation linked below makes me confused. The parameter name "ids" suggest due to its plural form of "id" that I should be able to fetch data from multiple tables in one request, right?
However, this (vaguely) suggest the opposite:
The unique table ID used to retrieve the Analytics Report data. This ID is provided by the element for each entry in the account feed. This value is composed of the ga: namespace and the view (profile) ID of the web property.
https://developers.google.com/analytics/devguides/reporting/core/v2/gdataReferenceDataFeed#ids
What I want to do is fetch visitor data from more than one table in one request and get them summed up and ready to use.
Is this possible?
Thanks!
This is not possible. You will need to make 2 separate requests for each table ID.

How to get last modified date & author from search:search API?

I am uploading some documents in Marklogic Server (doc, docx, pdf, txt etc). Now I am building an interface in HTML & XQuery that allows a user to enter a search term and if that matches the contents of any documents, then that document name is displayed in the grid. I am using search:search API for searching. Now I also want to show last modified date and author of the document in the grid. Every windows document have last modified date and author property. But how can I get this information from search:search API so that I can show these information in the grid ?
If you have enabled the settings "maintain last modified," Marklogic keeps the last modified information in document property fragments. However, this is unrelated to the properties information kept in Windows, which are lost by default when you load them in Marklogic.
If you want to retain the Windows properties data, set up a filter in Information Studio to populate the Marklogic property fragments with the data. Alternately, you could write your own XSLT and use xdmp:document-filter() to store the data directly in the document.
Once you have loaded your documents and populated them with the properties you need, you can access the data directly if stored in the document, or using xdmp:document-properties() if stored in document properties.

Search function in c#

I am trying to create a search page which searches the user given input against the meta data in the html files and shows the results accordingly, in short a simple search via metadata.
So far i have succeeded in getting the meta tags of the files. but unable to think any further how to get the relative comparison of the user given string and the meta data and sort the links according to the highest relevancy.
Any help would be great. Thanks in advance
Create search engine for site in asp .net c#

Resources