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.
Metadata
Release files for dedalov2 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dedalov2-0.0.1.tar.gz | 12.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dedalov2-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.1 kB
Release files / dedalov2-0.0.1.tar.gz
| Download URL | dedalov2-0.0.1.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
345f44c027c4bd680c3c62dba886647de3f6ae0c17eb31dcc34c3bce3edf0f7e
|
|
BLAKE2b-256 checksum How to use checksums |
7b806506571b1786aed615687702420a8de555067a98c25f20e7ac22ed7bc756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / dedalov2-0.0.1-py3-none-any.whl
| Download URL | dedalov2-0.0.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d504956ec0edc449087e8bc6c6ad4e577710f84969a6eb8b47f1e6c284eef81c
|
|
BLAKE2b-256 checksum How to use checksums |
95c4d30a1c59d1cf43b73a53d4a64641448636b1c269744075fc378f4c286d2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for dedalov2 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.