diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-05-12 14:50:58 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2014-05-12 14:50:58 -0500 |
commit | acfcaf6366bd4695c1c37c7aa8ff5a176b412e2a (patch) | |
tree | d3c9c684be0ebf8ce435d011e7e0793a165f7080 /mediagoblin/tools/metadata.py | |
parent | fbea284aebafc9d41175aa2ee924012520c43b82 (diff) | |
download | mediagoblin-acfcaf6366bd4695c1c37c7aa8ff5a176b412e2a.tar.lz mediagoblin-acfcaf6366bd4695c1c37c7aa8ff5a176b412e2a.tar.xz mediagoblin-acfcaf6366bd4695c1c37c7aa8ff5a176b412e2a.zip |
Move the metadata display table over to being contained in a plugin
Diffstat (limited to 'mediagoblin/tools/metadata.py')
-rw-r--r-- | mediagoblin/tools/metadata.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mediagoblin/tools/metadata.py b/mediagoblin/tools/metadata.py index 7de5a514..3f10e9d1 100644 --- a/mediagoblin/tools/metadata.py +++ b/mediagoblin/tools/metadata.py @@ -211,3 +211,8 @@ def expand_json(metadata, context=DEFAULT_CONTEXT): if context is not None: options["expandContext"] = context return jsonld.expand(metadata, options=options) + + +def rdfa_to_readable(rdfa_predicate): + readable = rdfa_predicate.split(u":")[1].capitalize() + return readable |