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.

Project description

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==2.0.0
  • requests

Example & Usage

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


orcid = information_linking_orcid(first_name="Julie", last_name="Costopoulos")
print(orcid)

info = information_linking(wikipedia_url="https://en.wikipedia.org/wiki?curid=18630637")
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)
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

information_linking_queries-0.1.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

information_linking_queries-0.1.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file information_linking_queries-0.1.4.tar.gz.

File metadata

File hashes

Hashes for information_linking_queries-0.1.4.tar.gz
Algorithm Hash digest
SHA256 03469e556fd1d4ac4d5e10c8ddb80b938017982755340d6271f2383d33b3f1f8
MD5 7d51305d7a2119dd6b333de76605a431
BLAKE2b-256 b8c63a43135eeb1d596bb5bd62c1b80b7effbdeee7cd0d9f12765d014d97cbb9

See more details on using hashes here.

File details

Details for the file information_linking_queries-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for information_linking_queries-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 14845ea9135b778f25f967fc7d0b6adabc4f64d0fee103e52a52b66126a1fa3c
MD5 70e930e196e5d58e4a81150ee4347f74
BLAKE2b-256 995dfc542dc60511fabf9616a1395d4fe002e20befd59a2a6136402851d233b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page