/usr/share/doc/ruby-graffiti/examples/samizdat-rdf-config.yaml is in ruby-graffiti 2.3.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | ---
# rdf.yaml
#
# Defines essential parts of RDF model of a Samizdat site. Don't touch
# it unless you know what you're doing.
# Namespaces
#
ns:
s: 'http://www.nongnu.org/samizdat/rdf/schema#'
tag: 'http://www.nongnu.org/samizdat/rdf/tag#'
items: 'http://www.nongnu.org/samizdat/rdf/items#'
rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
dc: 'http://purl.org/dc/elements/1.1/'
dct: 'http://purl.org/dc/terms/'
ical: 'http://www.w3.org/2002/12/cal#'
# Mapping of internal RDF properties to tables and fields. Statements
# over properties not listed here or in 'subproperty:' section below are
# reified using standard rdf::subject, rdf::predicate, and rdf::object
# properties, so at least these three and s::id must be mapped.
#
map:
's::id': {resource: id}
'dc::date': {resource: published_date}
'dct::isPartOf': {resource: part_of}
's::isPartOfSubProperty': {resource: part_of_subproperty}
's::partSequenceNumber': {resource: part_sequence_number}
'rdf::subject': {statement: subject}
'rdf::predicate': {statement: predicate}
'rdf::object': {statement: object}
's::login': {member: login}
's::fullName': {member: full_name}
's::email': {member: email}
'dc::title': {message: title}
'dc::creator': {message: creator}
'dc::format': {message: format}
'dc::language': {message: language}
's::openForAll': {message: open}
's::hidden': {message: hidden}
's::locked': {message: locked}
's::content': {message: content}
's::htmlFull': {message: html_full}
's::htmlShort': {message: html_short}
's::rating': {statement: rating}
's::voteProposition': {vote: proposition}
's::voteMember': {vote: member}
's::voteRating': {vote: rating}
# Map of properties into lists of their subproperties. For each property
# listed here, an additional qualifier field named <field>_subproperty
# is defined in the same table (as defined under 'map:' above) referring
# to resource id identifying the subproperty (normally a uriref resource
# holding uriref of the subproperty). Only one level of subproperty
# relation is supported, all subsubproperties must be listed directly
# under root property.
#
subproperties:
'dct::isPartOf': [ 's::inReplyTo', 'dct::isVersionOf',
's::isTranslationOf', 's::subTagOf' ]
# Map of transitive RDF properties into tables that hold their
# transitive closures. The format of the table is as follows: 'resource'
# field refers to the subject resource id, property field (and qualifier
# field in case of subproperty) has the same name as in the main table
# (as defined under 'map:' above) and holds reference to predicate
# object, and 'distance' field holds the distance from subject to object
# in the RDF graph.
#
transitive_closure:
'dct::isPartOf': part
|