restframework-rdf
Integration between RDF and django rest framework
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (17.2%) to scientific vocabulary
Keywords
Repository
Integration between RDF and django rest framework
Basic Info
- Host: GitHub
- Owner: UUDigitalHumanitieslab
- License: bsd-3-clause
- Language: Python
- Default Branch: develop
- Size: 227 KB
Statistics
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 4
- Releases: 4
Topics
Metadata Files
README.md
restframework-rdf
Django apps for integration between Resource Description Framework (RDF) and django REST framework. The repository contains two django apps, rdf for general RDF functionality and sparql to add views for SPARQL queries. The functionality is intended as generic and useful for any project that intends to expose an RDF database through a django REST framework API.
These apps were originally developed within the read-it interface. The code was moved to this independent repository so it could be used in another application, EDPOP.
Both of these applications are in active development; as such, this repository may see further updates to serve the needs of different applications. We welcome contributions to make the package more widely applicable.
However, be advised that this repository was primarily developed to be used in our own applications. It may not have the level of documentation that you would expect from a public-facing package. At the very least, the documentation will assume that you have basic familiarity with both RDF and django REST framework.
Quick start
Follow the getting started guide to use the app in a django project.
Usage documentation is available in the documentation directory or read the docs
Development and unit tests
These steps are for development on the rdf app itself. Follow the steps below in order to run the unit tests.
Blazegraph
Before you start, you need to install Blazegraph. The unit tests assume that you have a blazegraph server running and that the namespace 'rdf-test' is created. The following steps suffice to make this true.
Follow the Blazegraph quick start guide to download and start the database server and a foreground process.
While the server is running, you can access its web interface at http://localhost:9999. This lets you upload and download data, try out queries and review statistics about the dataset. The server can be stopped by typing ctrl-c.
Visit the web interface, navigate to the NAMESPACES tab. Use the create namespace form to create a new namespace. Choose rdf-test as a name, and set the mode to quads. All other checkboxes should be disabled. A popup is shown with additional settings. Leave these at their default values and choose Create. The created namespace should now appear in the list of namespaces. Choose use to use the rdf-test namespace when operating the web interface
Running unit tests
- Clone this repository
- Install the required python packages via
pip install -r requirements.txt - Make sure your blazegraph server is running and that the
rdf-testnamespace exists inquadsmode (see above). - Run the unit tests with
pytest.
Usage during development
To use your work-in-progress drf app in a django project, build the package with
bash
python setup.py sdist
You can now find the package in this repository under dist/restframework-drf-blablabla.tar.gz
To install the package in your project, install via pip as
bash
pip install path/to/repository/dist/restframework-drf-*.targ.gz
Documentation
Documentation (in the docs directory) is based on MkDocs.
You can browse the documentation in a development server by running
bash
mkdocs serve
Owner
- Name: UU Digital Humanities Lab
- Login: UUDigitalHumanitieslab
- Kind: organization
- Email: digitalhumanities@uu.nl
- Location: Utrecht
- Website: https://cdh.uu.nl/rsl/
- Repositories: 102
- Profile: https://github.com/UUDigitalHumanitieslab
Research Software Lab · Centre for Digital Humanities · Utrecht University
Citation (CITATION.cff)
cff-version: 1.2.0
title: restframework-rdf
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- name: 'Research Software Lab, Centre for Digital Humanities, Utrecht University'
website: 'https://cdh.uu.nl/centre-for-digital-humanities/research-software-lab/'
email: cdh@uu.nl
city: Utrecht
country: NL
license: BSD-3-Clause
repository-code: https://github.com/UUDigitalHumanitieslab/restframework-rdf
version: 1.2.0
identifiers:
- type: doi
value: 10.5281/zenodo.8158686
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 8 months ago
All Time
- Total issues: 5
- Total pull requests: 16
- Average time to close issues: 5 months
- Average time to close pull requests: 23 days
- Total issue authors: 3
- Total pull request authors: 3
- Average comments per issue: 0.4
- Average comments per pull request: 0.19
- Merged pull requests: 14
- Bot issues: 0
- Bot pull requests: 12
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- lukavdplas (3)
- tijmenbaarda (1)
Pull Request Authors
- dependabot[bot] (18)
- lukavdplas (3)
- tijmenbaarda (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 37 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
pypi.org: restframework-rdf
A Django app for integration between django rest framework and RDF
- Homepage: https://github.com/UUDigitalHumanitieslab/restframework-rdf
- Documentation: https://restframework-rdf.readthedocs.io/
- License: BSD-3
-
Latest release: 1.2.0
published over 1 year ago