Giter VIP home page Giter VIP logo

silverstripe-rdfa's Introduction

SilverStripe RDFa

This module adds RDFa content in SilverStripe CMS for Linked Data.

It uses the RDFa Lite 1.1 spec from https://www.w3.org/TR/rdfa-lite/

Requirements

  • SilverStripe ^3.1

Installation

composer require opendatanz/silverstripe-rdfa

License

See License

Documentation

Including a vocab and typeof

In your custom template 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.

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.

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:

[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.

If the issue does look like a new bug:

  • 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.

Development and contribution

See Contributing

silverstripe-rdfa's People

Contributors

camfindlay avatar

Stargazers

Pete Smith avatar

Watchers

James Cloos avatar Open Data NZ team avatar

silverstripe-rdfa's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.