2017 © Pedro Peláez
 

silverstripe-module silverstripe-rdfa

RDFa in SilverStripe CMS for Linked Data

image

opendatanz/silverstripe-rdfa

RDFa in SilverStripe CMS for Linked Data

  • Thursday, May 12, 2016
  • by camfindlay
  • Repository
  • 2 Watchers
  • 1 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SilverStripe RDFa

This module adds RDFa content in SilverStripe CMS for Linked Data., (*1)

It uses the RDFa Lite 1.1 spec from https://www.w3.org/TR/rdfa-lite/, (*2)

Requirements

  • SilverStripe ^3.1

Installation

composer require opendatanz/silverstripe-rdfa

License

See License, (*3)

Documentation

Including a vocab and typeof

In your custom template , (*4)

tag, add the following to render the vocab and typeof attributes.
<% include RDFaVocab %>

You can edit the default vocab or add a vocab prefix including the CURIE (compact URI) by using the SilverStripe Config API., (*5)

Page:
  rdfa_vocab: 'http://some-other-vocab.org/'
  rdfa_prefix: 'ov: http://open.vocab.org/terms/'

Set the typeof attribute on a per page basis in the CMS unber the RDFa tab., (*6)

Setting properties and resources

A shortcode is available in order to add new property and resource attributes, it wraps the content in a tag and can be used in the CMS content editor using the following shortcode format:, (*7)

[rdfa,property="name",resource="#jo-bloggs"]Jo Bloggs[/rdfa]

TODO

  • Auto populate the typeof based on the available vocab.
  • A GUI for the shortcode that auto populates the property attribute.
  • More control over the template (currently just renders in a ).
  • SPARQL endpoint using something like easyrdf library.
  • Expand to the full RDFa spec.

Maintainers

Bugtracker

Bugs are tracked in the issues section of this repository. Before submitting an issue please read over existing issues to ensure yours is unique., (*8)

If the issue does look like a new bug:, (*9)

  • Create a new issue
  • Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
  • Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker., (*10)

Development and contribution

See Contributing, (*11)

The Versions

12/05 2016

dev-master

9999999-dev

RDFa in SilverStripe CMS for Linked Data

  Sources   Download

BSD-3-Clause

cms silverstripe rdfa rdf linked data data graph

12/05 2016

0.1.1

0.1.1.0

RDFa in SilverStripe CMS for Linked Data

  Sources   Download

BSD-3-Clause

cms silverstripe rdfa rdf linked data data graph

10/05 2016

0.1.0

0.1.0.0

RDFa in SilverStripe CMS for Linked Data

  Sources   Download

BSD-3-Clause

cms silverstripe rdfa rdf linked data data graph