Skip to content

Commit

Permalink
issue #8: added definition for rdf-filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Danstrom committed Sep 6, 2017
1 parent 0370c74 commit 1976d4c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
env:
global:
- METADATA_STORAGE_API_STORAGE_TYPE=XML-FILESYSTEM
- METADATA_STORAGE_API_STORAGE_LOCATION="sandbox/collections.xml"
- METADATA_STORAGE_API_STORAGE_TYPE=RDF-FILESYSTEM
- METADATA_STORAGE_API_STORAGE_LOCATION="sandbox/collections.rdf"
language: python
python:
- "3.5"
Expand Down
2 changes: 2 additions & 0 deletions debug.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
echo "METADATA_STORAGE_API_STORAGE_TYPE: ${METADATA_STORAGE_API_STORAGE_TYPE}"
echo "METADATA_STORAGE_API_STORAGE_LOCATION: ${METADATA_STORAGE_API_STORAGE_LOCATION}"
METADATA_STORAGE_API_STORAGE_TYPE=XML-FILESYSTEM
METADATA_STORAGE_API_STORAGE_LOCATION=/mnt/C/Users/tyler/Documents/Github/ldr_metadatastorage/sandbox/collections.xml
APP_SAVE=$FLASK_APP
FLASK_APP=metadatastorageapi
python -m flask run
Expand Down
12 changes: 12 additions & 0 deletions metadatastorageapi/blueprint/storagelib/rdffilesystemstorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,16 @@ def __init__(self, file_path):
def find_root_collections(self):
root = URIRef("http://metadatastorage.lib.uchicago.edu/collection/ldr")
[x for x in g.subjects() if x == root]
return []

def find_specific_collection(self, identifier):
return []

def find_extension(self, extension):
return None

def find_collection_extensions(self, collection_id):
return []

def find_core_metadata(self, collection_id):
return {}

0 comments on commit 1976d4c

Please sign in to comment.