tripper


Nametripper JSON
Version 0.3.4 PyPI version JSON
download
home_pageNone
SummaryA triplestore wrapper for Python.
upload_time2024-10-17 18:12:15
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords triplestore ontology rdf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Tripper
=======
*Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends.*


[![PyPI](https://img.shields.io/pypi/v/tripper?logo=pypi)](https://pypi.org/project/tripper)
[![Documentation](https://img.shields.io/badge/documentation-informational?logo=github)](https://emmc-asbl.github.io/tripper/latest/)
[![CI tests](https://github.com/EMMC-ASBL/tripper/workflows/CI%20-%20Tests/badge.svg)](https://github.com/EMMC-ASBL/tripper/actions/workflows/ci_tests.yml?query=branch%3Amaster)
[![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)


Getting started
---------------
* [Tutorial]
* [Discovery of custom backends]
* [Reference manual]


Basic concepts
--------------
Tripper provides a simple and consistent interface to a range of triplestore backends.
It strives for simplicity and is modelled after [rdflib] (with a few simplifications).

In Tripper:

* All IRIs are represented by Python strings.
  Example: `"https://w3id.org/emmo#Metre"`

* Blank nodes are strings starting with "_:".
  Example: `"_:bnode1"`

* Literals are constructed with [`tripper.Literal`][Literal].
  Example: `tripper.Literal(3.14, datatype=XSD.float)`

To make it easy to work with IRIs, provide Tripper a set of pre-defined namespaces, like `XSD.float`.
New namespaces can be defined with the [`tripper.Namespace`][Namespace] class.

A triplestore wrapper is created with the [`tripper.Triplestore`][Triplestore] class.


Advanced features
-----------------
The submodules `mappings` and `convert` provide additional functionality beyond interfacing triplestore backends:
- **tripper.mappings**: traverse mappings stored in the triplestore and find possible mapping routes.
- **tripper.convert**: convert between RDF and other data representations.


Available backends
------------------
The following backends are currently available, either in Tripper or other packages.

| Backend name  | Provided by  | Requirements            | Comment
| ------------  | ------------ | ----------------------- | -----------------
| rdflib        | [tripper]    | rdflib                  | In-memory [rdflib] triplestore supporting all features.
| ontopy        | [tripper]    | EMMOntoPy               | Backend for [EMMOntoPy]. In-memory.
| sparqlwrapper | [tripper]    | sparqlwrapper           | Generic backend for all triplestores supported by [sparqlwrapper].
| collection    | [tripper]    | DLite-Python            | Backend to a [DLite] collection.
| fuseki        | [PyBackTrip] | sparqlwrapper           | Backend to [fuseki].
| stardog       | [PyBackTrip] | sparqlwrapper,pystardog | Backend to [StarDog].
| graphdb       | [PyBackTrip] | sparqlwrapper           | Backend to [GraphDB].


Installation
------------
Tripper has by itself no dependencies outside the standard library, but the triplestore backends may have specific dependencies.


The package can be installed from [PyPI] using `pip`:

```shell
pip install tripper
```

In addition you would need to install the requirements for one or more of the backends listed in the table above.
For mappings you would also need to install [Pint].
For example:

```shell
pip install rdflib pint
```




License and copyright
---------------------
All files in this repository are licensed under the [MIT license].
If not stated otherwise in the top of the files, they have copyright © 2022
SINTEF.


Acknowledgements
----------------
We gratefully acknowledge the following projects for supporting the development of Tripper:

  - [OntoTrans](https://ontotrans.eu/) (2020-2024) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 862136.
  - [OpenModel](https://www.open-model.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953167.
  - [SFI PhysMet](https://www.ntnu.edu/physmet) (2020-2028) funded by Forskningsrådet and Norwegian industry partners.
  - [DOME 4.0](https://dome40.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953163.
  - [VIPCOAT](https://www.vipcoat.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 952903.
  - MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,
  - [MatCHMaker](https://he-matchmaker.eu/) (2022-2026) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101091687.



[Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/
[Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/
[Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/
[Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/
[MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/
[tripper]: https://emmc-asbl.github.io/tripper
[rdflib]: https://rdflib.readthedocs.io/en/stable/
[PyPI]: https://pypi.org/project/tripper
[PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/
[Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal
[Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace
[Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore
[EMMOntoPy]: https://emmo-repo.github.io/EMMOntoPy/stable/
[sparqlwrapper]: https://sparqlwrapper.readthedocs.io/en/latest/
[DLite]: https://sintef.github.io/dlite/
[fuseki]: https://jena.apache.org/documentation/fuseki2/
[StarDog]: https://www.stardog.com/
[GraphDB]: https://www.ontotext.com/products/graphdb/
[Pint]: https://pint.readthedocs.io/en/stable/


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "tripper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "triplestore, ontology, RDF",
    "author": null,
    "author_email": "SINTEF <TEAM4.0@sintef.no>",
    "download_url": "https://files.pythonhosted.org/packages/b5/25/e60a6d3fd33bf491c138207e5cad0309b236cc281c41915d3d3b2bf7c496/tripper-0.3.4.tar.gz",
    "platform": null,
    "description": "Tripper\n=======\n*Triplestore wrapper for Python providing a simple and consistent interface to a range of triplestore backends.*\n\n\n[![PyPI](https://img.shields.io/pypi/v/tripper?logo=pypi)](https://pypi.org/project/tripper)\n[![Documentation](https://img.shields.io/badge/documentation-informational?logo=github)](https://emmc-asbl.github.io/tripper/latest/)\n[![CI tests](https://github.com/EMMC-ASBL/tripper/workflows/CI%20-%20Tests/badge.svg)](https://github.com/EMMC-ASBL/tripper/actions/workflows/ci_tests.yml?query=branch%3Amaster)\n[![DOI](https://zenodo.org/badge/547162834.svg)](https://zenodo.org/badge/latestdoi/547162834)\n\n\nGetting started\n---------------\n* [Tutorial]\n* [Discovery of custom backends]\n* [Reference manual]\n\n\nBasic concepts\n--------------\nTripper provides a simple and consistent interface to a range of triplestore backends.\nIt strives for simplicity and is modelled after [rdflib] (with a few simplifications).\n\nIn Tripper:\n\n* All IRIs are represented by Python strings.\n  Example: `\"https://w3id.org/emmo#Metre\"`\n\n* Blank nodes are strings starting with \"_:\".\n  Example: `\"_:bnode1\"`\n\n* Literals are constructed with [`tripper.Literal`][Literal].\n  Example: `tripper.Literal(3.14, datatype=XSD.float)`\n\nTo make it easy to work with IRIs, provide Tripper a set of pre-defined namespaces, like `XSD.float`.\nNew namespaces can be defined with the [`tripper.Namespace`][Namespace] class.\n\nA triplestore wrapper is created with the [`tripper.Triplestore`][Triplestore] class.\n\n\nAdvanced features\n-----------------\nThe submodules `mappings` and `convert` provide additional functionality beyond interfacing triplestore backends:\n- **tripper.mappings**: traverse mappings stored in the triplestore and find possible mapping routes.\n- **tripper.convert**: convert between RDF and other data representations.\n\n\nAvailable backends\n------------------\nThe following backends are currently available, either in Tripper or other packages.\n\n| Backend name  | Provided by  | Requirements            | Comment\n| ------------  | ------------ | ----------------------- | -----------------\n| rdflib        | [tripper]    | rdflib                  | In-memory [rdflib] triplestore supporting all features.\n| ontopy        | [tripper]    | EMMOntoPy               | Backend for [EMMOntoPy]. In-memory.\n| sparqlwrapper | [tripper]    | sparqlwrapper           | Generic backend for all triplestores supported by [sparqlwrapper].\n| collection    | [tripper]    | DLite-Python            | Backend to a [DLite] collection.\n| fuseki        | [PyBackTrip] | sparqlwrapper           | Backend to [fuseki].\n| stardog       | [PyBackTrip] | sparqlwrapper,pystardog | Backend to [StarDog].\n| graphdb       | [PyBackTrip] | sparqlwrapper           | Backend to [GraphDB].\n\n\nInstallation\n------------\nTripper has by itself no dependencies outside the standard library, but the triplestore backends may have specific dependencies.\n\n\nThe package can be installed from [PyPI] using `pip`:\n\n```shell\npip install tripper\n```\n\nIn addition you would need to install the requirements for one or more of the backends listed in the table above.\nFor mappings you would also need to install [Pint].\nFor example:\n\n```shell\npip install rdflib pint\n```\n\n\n\n\nLicense and copyright\n---------------------\nAll files in this repository are licensed under the [MIT license].\nIf not stated otherwise in the top of the files, they have copyright &copy; 2022\nSINTEF.\n\n\nAcknowledgements\n----------------\nWe gratefully acknowledge the following projects for supporting the development of Tripper:\n\n  - [OntoTrans](https://ontotrans.eu/) (2020-2024) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 862136.\n  - [OpenModel](https://www.open-model.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953167.\n  - [SFI PhysMet](https://www.ntnu.edu/physmet) (2020-2028) funded by Forskningsr\u00e5det and Norwegian industry partners.\n  - [DOME 4.0](https://dome40.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 953163.\n  - [VIPCOAT](https://www.vipcoat.eu/) (2021-2025) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 952903.\n  - MEDIATE (2022-2025) that receives funding from the RCN, Norway; FNR, Luxenburg; SMWK Germany via the M-era.net programme, project 9557,\n  - [MatCHMaker](https://he-matchmaker.eu/) (2022-2026) that receives funding from the European Union's Horizon 2020 Research and Innovation Programme, under Grant Agreement n. 101091687.\n\n\n\n[Tutorial]: https://emmc-asbl.github.io/tripper/latest/tutorial/\n[Discovery of custom backends]: https://emmc-asbl.github.io/tripper/latest/backend_discovery/\n[Reference manual]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/\n[Known issues]: https://emmc-asbl.github.io/tripper/latest/known-issues/\n[MIT license]: https://emmc-asbl.github.io/tripper/latest/LICENSE/\n[tripper]: https://emmc-asbl.github.io/tripper\n[rdflib]: https://rdflib.readthedocs.io/en/stable/\n[PyPI]: https://pypi.org/project/tripper\n[PyBackTrip]: https://github.com/EMMC-ASBL/PyBackTrip/\n[Literal]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Literal\n[Namespace]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Namespace\n[Triplestore]: https://emmc-asbl.github.io/tripper/latest/api_reference/triplestore/#tripper.triplestore.Triplestore\n[EMMOntoPy]: https://emmo-repo.github.io/EMMOntoPy/stable/\n[sparqlwrapper]: https://sparqlwrapper.readthedocs.io/en/latest/\n[DLite]: https://sintef.github.io/dlite/\n[fuseki]: https://jena.apache.org/documentation/fuseki2/\n[StarDog]: https://www.stardog.com/\n[GraphDB]: https://www.ontotext.com/products/graphdb/\n[Pint]: https://pint.readthedocs.io/en/stable/\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A triplestore wrapper for Python.",
    "version": "0.3.4",
    "project_urls": {
        "Changelog": "https://github.com/EMMC-ASBL/tripper/blob/master/CHANGELOG.md",
        "Documentation": "https://EMMC-ASBL.github.io/tripper",
        "Home": "https://github.com/EMMC-ASBL/tripper",
        "Issue Tracker": "https://github.com/EMMC-ASBL/tripper/issues",
        "Package": "https://pypi.org/project/tripper",
        "Source": "https://github.com/EMMC-ASBL/tripper"
    },
    "split_keywords": [
        "triplestore",
        " ontology",
        " rdf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8153d38448a7c94350170b8847f946d2d231eca8a8c139749b6039a1f4316f3b",
                "md5": "45b9756d814c9679de3097c740e49233",
                "sha256": "0da05cdb9c393a04df46ad7006653442ddb60d097f25f75628566e0353b80433"
            },
            "downloads": -1,
            "filename": "tripper-0.3.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "45b9756d814c9679de3097c740e49233",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 57630,
            "upload_time": "2024-10-17T18:12:13",
            "upload_time_iso_8601": "2024-10-17T18:12:13.544763Z",
            "url": "https://files.pythonhosted.org/packages/81/53/d38448a7c94350170b8847f946d2d231eca8a8c139749b6039a1f4316f3b/tripper-0.3.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b525e60a6d3fd33bf491c138207e5cad0309b236cc281c41915d3d3b2bf7c496",
                "md5": "7c296b56ed02f71b4843892edf8e3dd2",
                "sha256": "71e471784f3845634c195daf4852bbae0e743145d01bf75389789ed652af7d1b"
            },
            "downloads": -1,
            "filename": "tripper-0.3.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7c296b56ed02f71b4843892edf8e3dd2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 97491,
            "upload_time": "2024-10-17T18:12:15",
            "upload_time_iso_8601": "2024-10-17T18:12:15.643484Z",
            "url": "https://files.pythonhosted.org/packages/b5/25/e60a6d3fd33bf491c138207e5cad0309b236cc281c41915d3d3b2bf7c496/tripper-0.3.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-17 18:12:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "EMMC-ASBL",
    "github_project": "tripper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "tripper"
}
        
Elapsed time: 1.75017s