Skip to main content

A library for enriching metadata through semantic queries. It performs API calls to Wikipedia, Wikidata, DBpedia, and ORCID to retrieve and integrate structured information from multiple open knowledge sources.

Main dependencies

  • python>=3.11
  • SPARQLWrapper
  • requests

Example & Usage

from information_linking_queries.information_linking_orcid import information_linking_orcid
from information_linking_queries.information_linking_apis import information_linking

headers = {"User-Agent": "InformationBot/1.7 (https://research.org/informationbot/; informationbot@research.org) information-linking-library/1.7"}
 
orcid = information_linking_orcid(first_name="Julie", last_name="Costopoulos")
print(orcid)

info = information_linking(wikipedia_url="https://en.wikipedia.org/wiki?curid=18630637", headers=headers)
print(info)
{'orcid-id': '0000-0001-9912-3171', 'given-names': 'Julie', 'family-names': 'Costopoulos', 'credit-name': 'Julie Costopoulos', 'other-name': ['Julie S. Costopoulos', 'Julie S. Gross', 'Julie Gross'], 'email': [], 'institution-name': ['Florida Institute of Technology', 'Florida State University', 'New York University', 'University of Florida']}

{'description': 'Translation is the communication of the meaning of a source-language text by means of an equivalent target-language text. The English language draws a terminological distinction (which does not exist in every language) between translating (a written text) and interpreting (oral or signed communication between users of different languages); under this distinction, translation can begin only after the appearance of writing within a language community.', 'label': 'Translation', 'wikidata': 'https://www.wikidata.org/wiki/Q7553', 'aliases': ['translate', 'translating'], 'dbpedia': 'http://dbpedia.org/resource/Translation'}

Parameters for information_linking_orcid

  • first_name: The first name of the author. (Required)
  • last_name: The last name of the author. (Required)

Parameters for information_linking

  • wikipedia_url: The URL of a wikipedia entry (It has to be with with a curid such as 'https://en.wikipedia.org/wiki?curid=18630637'). (Required)
  • headers: A UserAgent header that complies with Wikipedia's UserAgent policy. (Required)
  • description: The first 2 sentences of a wikipedia entry, (deafult=True), (Values: True, False). (Optional)
  • label: The wikipedia title of a wikipedia entry, (deafult=True), (Values: True, False). (Optional)
  • wikidata: The wikidata url of a wikipedia entry, (deafult=True), (Values: True, False). (Optional)
  • aliases: The english wikidata aliases, (deafult=True), (Values: True, False). (Optional)
  • dbpedia: The dbpedia url of a wikipedia entry, (deafult=True), (Values: True, False). (Optional)

Licence

MIT License

Copyright (c) 2025 Nikolas Kapralos

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for information-linking-queries 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for information-linking-queries 0.1.9
File Size Uploaded
information_linking_queries-0.1.9.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for information-linking-queries 0.1.9
File Interpreter ABI Platform
information_linking_queries-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 12.5 kB

Release files / information_linking_queries-0.1.9.tar.gz

Download URL information_linking_queries-0.1.9.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d8482f519efd9e6391e837ac2e4d8635fd01ffdb913f42b7adcad9f3e4d27297
BLAKE2b-256 checksum
How to use checksums
431b30f8b4e67c275dedf82b6777f34497e8d81cea33f5ab49070f285c59354b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release files / information_linking_queries-0.1.9-py3-none-any.whl

Download URL information_linking_queries-0.1.9-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db5a99bbd5816203af836b107a4f991e1895eb60399466081fe141fb6d66444b
BLAKE2b-256 checksum
How to use checksums
de286762e15eebb1776390e8eba012be9277f0df424c1cab1343d625b872dfe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page