Skip to main content

Explain groups of URIs on the Semantic Web

Project description

Dedalo

Dedalo explains why a set of URIs belongs together.

Example

Have a look at the example below and get going in seconds!

We'll use the file abba.txt as input. Its contents are:

1,http://dbpedia.org/resource/Benny_Andersson
1,http://dbpedia.org/resource/Björn_Ulvaeus
1,http://dbpedia.org/resource/Agnetha_Fältskog
1,http://dbpedia.org/resource/Anni-Frid_Lyngstad
2,http://dbpedia.org/resource/Linus_Torvalds
2,http://dbpedia.org/resource/Avicii
2,http://dbpedia.org/resource/Stellan_Skarsgård
2,http://dbpedia.org/resource/Markus_Persson

The number at the start of each line indicates the group the URI belongs to. You can use any number you like, as long as it's an integer.

You can use the following code to explain group 1.

import dedalov2 as ddl

for explanation in ddl.explain("the-internet.hdt",
                               "abba.txt",
                               minimum_score=1,
                               groupid=1):
    print(explanation)

The results depend on the hdt file you're using. If it includes URIs from DBPedia, the results look something like this:

http://dbpedia.org/property/label -| http://dbpedia.org/resource/Polar_Music
http://dbpedia.org/property/associatedActs -| http://dbpedia.org/resource/ABBA
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Anni-Frid_Lyngstad
http://www.w3.org/2004/02/skos/core#subject -| http://dbpedia.org/resource/Category:ABBA_members
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Cher
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Polar_Music
http://dbpedia.org/ontology/associatedBand -| http://dbpedia.org/resource/ABBA
http://dbpedia.org/ontology/associatedMusicalArtist -| http://dbpedia.org/resource/ABBA
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Svensktoppen
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Eurovision_Song_Contest
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/ABBA
http://dbpedia.org/property/wikiPageUsesTemplate -| http://dbpedia.org/resource/Template:infobox_musical_artist
http://dbpedia.org/property/wikilink -| http://dbpedia.org/resource/Rik_Mayall
http://dbpedia.org/ontology/label -| http://dbpedia.org/resource/Polar_Music

These URIs are long and difficult to read. Read the docs to learn how to make the output look better.

Installation

Dedalov2 requires Python 3 and can be installed using Python's package manager, pip.

pip install dedalov2

Depending on your use case, you may want to pass the -U flag or run this in a virtual environment.

Documentation

See the documentation page for more examples.

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

dedalov2-0.0.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

dedalov2-0.0.2-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file dedalov2-0.0.2.tar.gz.

File metadata

  • Download URL: dedalov2-0.0.2.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for dedalov2-0.0.2.tar.gz
Algorithm Hash digest
SHA256 faeb456c4a8f9f1925771f9161c33a94e00b60b3a1962b9a539431b3ee2ab88a
MD5 c4b88078bedf39bd547ccae05dc72a62
BLAKE2b-256 58e2d503430fe6f59fe05673c4577fa4fa7de0ad46c448cc0be5b8b298818245

See more details on using hashes here.

File details

Details for the file dedalov2-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dedalov2-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for dedalov2-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42f94d9cc4423eb043c0e8c85df7e903b011416d2c8c737c666fc725abfc084d
MD5 cea5045d7067dc81d0ce807d5adef542
BLAKE2b-256 7be6ed007fa33168dc094f71bcf4d3de65fc9fd713f5a89c0006890900a33097

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