Skip to main content

The Simpsons in RDF

This is an example file modeling the Simpsons Family in RDF. It was originally taken from

http://sws.ifi.uio.no/inf3580/v15/oblig/3/simpsons.ttl

where it is part of an assignment:

https://www.uio.no/studier/emner/matnat/ifi/INF3580/v17/undervisningsmateriale/oblig_4.pdf

I have slightly adopted it and moved it to the <https://simpsons.example.org/> namespace.

The simpsons graph is also included in the JekyllRDF tutorial: https://github.com/white-gecko/JekyllRDF-Tutorial/blob/master/_data/graph.ttl (JekyllRDF)

Usage in Python

To use it in python do:

pip install simpsons-rdf

or

poetry add simpsons-rdf

use it like any other RDFLib Graph object.

from simpsons import simpsons, SIM, FAM

print({p: o for _, p, o in simpsons.graph.triples((SIM.Homer, None, None))})
print([spouse for _, _, spouse in simpsons.graph.triples((SIM.Homer, FAM.hasSpouse, None))])
print(simpsons.graph.serialize(format="turtle"))

Metadata

Release files for simpsons-rdf 0.3.0

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

Source distribution (sdist)

Source distribution for simpsons-rdf 0.3.0
File Size Uploaded Provenance Actions
simpsons_rdf-0.3.0.tar.gz 2.2 kB Without provenance Details for simpsons_rdf-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simpsons-rdf 0.3.0
File Interpreter ABI Platform Actions
simpsons_rdf-0.3.0-py3-none-any.whl Python 3 none any Details for simpsons_rdf-0.3.0-py3-none-any.whl

Total release size: 5.0 kB

Release files / simpsons_rdf-0.3.0.tar.gz

Download URL simpsons_rdf-0.3.0.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
83ed8f66ab8ea3cd123bd2cf8916cb792d7dc0febb4f7c99fd002ef99e276421
BLAKE2b-256 checksum
How to use checksums
0a048997ccfe04f1675b8fd580a571189667be43afaace53b163677443c43aeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64

Release files / simpsons_rdf-0.3.0-py3-none-any.whl

Download URL simpsons_rdf-0.3.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0453aaf29c407e1eb9d3fc98fdf99f40e1567cd8c3f0e97a5b55c3fca698587e
BLAKE2b-256 checksum
How to use checksums
27fa283984fb1a1656a684cc11bfddf836bd7d2965ec6330eb0800f027142653
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64

Security for simpsons-rdf 0.3.0

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.

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