Giter Site home page Giter Site logo

sphinxcontrib-rdf's Introduction

sphinxcontrib-rdf

image

image

Sphinx contrib extension for working with RDF and RDFLib

  • Free software: BSD license

Features

TODO

Objectives

  • reference objects with URIs (and [schema.org] types)
  • output HTML with RDFa
    • Include RDFa blocks for existing Sphinx themes and templates
  • include blocks of triples (like csv-table)

Syntax

Line Blocks

This works today, with no RDFa output ( westurner/tools#2 ):

.. index:: Sphinx
.. _sphinx:

Sphinx
~~~~~~~~~~~~~~~~~
| Wikipedia: `<https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)>`_
| Homepage: https://pypi.python.org/pypi/Sphinx
| Src: hg https://bitbucket.org/birkenfeld/sphinx/
| Pypi: https://pypi.python.org/pypi/Sphinx
| Docs: http://sphinx-doc.org/contents.html
| Docs: http://sphinx-doc.org/markup/code.html
| Docs: http://pygments.org/docs/lexers/
| Docs: http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html
| Docs: https://github.com/yoloseem/awesome-sphinxdoc


Sphinx is a tool for working with
:ref:`ReStructuredText` documentation trees
and rendering them into HTML, PDF, LaTeX, ePub,
and a number of other formats.

rdf directive

I loved that |book|.

.. |book| rdf:: awesome.com
   :a: schema:Book
   :title lang=en: Book Title
   :uri: awesome.com
   :author: sweet pete
   :oclc-isbn: 12345

questions:

  • this is neither Turtle, nor JSON-LD, nor RDFa (which can be included as a literal HTML block); but docutils nearly supports this syntax without any external parsing libraries; so is yet another format for [triples/JSONLD] justifiable?
  • how does this render the additional attributes as rdfa?
    • can it render (in HTML) as a tooltip? e.g. a docutils.nodes.span_with_tooltip?
      • tooltips do not work well with touch UIs and e.g. mobile devices.
  • how does this compare to the sphinxcontrib bibtex approach[es]?
  • what about PDF?
    • The PDF representation should look something like the output from a line block.
  • how to reference multiple properties in-text with the same object definition?
  • See also:

Origins

sphinxcontrib-rdf's People

Contributors

westurner avatar

Watchers

 avatar  avatar

sphinxcontrib-rdf'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.