PHPackages                             aksw/rdfauthor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. aksw/rdfauthor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aksw/rdfauthor
==============

RDFauthor creates formular widgets out of RDFa-enhanced webpages.

188.8k5[19 issues](https://github.com/AKSW/RDFauthor/issues)[1 PRs](https://github.com/AKSW/RDFauthor/pulls)1JavaScript

Since Apr 14Pushed 10y ago13 watchersCompare

[ Source](https://github.com/AKSW/RDFauthor)[ Packagist](https://packagist.org/packages/aksw/rdfauthor)[ RSS](/packages/aksw-rdfauthor/feed)WikiDiscussions develop Synced today

READMEChangelogDependenciesVersions (1)Used By (1)

RDFauthor Readme
================

[](#rdfauthor-readme)

Requirements
------------

[](#requirements)

To make use of RDFauthor your web project must meet the following requirements:

- [RDFa](http://www.w3.org/TR/xhtml-rdfa-primer/) must be used to embed RDF triples in your XHTML markup.
- The triple store where your data comes from must provide a SPARQL/Update endpoint.
- The URI of the update endpoint must be embedded in the page using our [update vocabulary](http://ns.aksw.org/update/).

Installation
------------

[](#installation)

RDFauthor is a JavaScript library, hence no installation is needed.

Using RDFauthor within your Project
-----------------------------------

[](#using-rdfauthor-within-your-project)

Three steps are required in order to use RDFauthor within your project.

1. Embed provenance information (as RDFa) for named graphs in your page. If you don't use named graphs, the URI of the page is used as the graph URI.
2. Define a global JavaScript variable named `RDFAUTHOR_BASE` that contains the URI of RDFauthor on your web server (e.g. `http://example.com/MyWebApp/lib/rdfauthor/`).
3. Define another global variable called `RDFAUTHOR_READY_CALLBACK` which contains a function to be executed when RDFauthor has finished loading. Typical usage is calling `setOptions()` and `start()`:

    ```
     RDFAUTHOR_READY_CALLBACK = function () {
         // RDFauthor is now loaded and ready to use
         RDFauthor.setOptions({});
         RDFauthor.start();
     };

    ```
4. Include `rdfauthor.js` (found under `RDFAUTHOR_BASE`) lazily.

Options
-------

[](#options)

Currently, the following options exist:

```
var _defaultOptions = {
    title: 'Title',
    saveButtonTitle: 'saveButtonTitle',
    cancelButtonTitle: 'cancelButtonTitle',
    showButtons: true,
    useAnimations: true,
    autoParse: true,
    usePredicateInfo: true,
    useSPARQL11: false,
    fetchAllPredicates: true,
    viewOptions: {
        type: 'popover' /* inline or popover */
    }
};

```

Unless you are using the update-API up Ontowiki, you probably want to set useSPARQL11 to true, so it uses SPARQL-update.

API Documentation
-----------------

[](#api-documentation)

RDFauthor's API documentation can be built with [JsDoc Toolkit](http://code.google.com/p/jsdoc-toolkit/). Under Ubuntu, you can install this by running `sudo apt-get install jsdoc-toolkit`. Afterwards run `jsdoc -d=./doc ./src` in the directory of RDFauthor.

If you manually downloaded the toolkit, you need to set two environment variables:

- set `$JSDOCDIR` to the path under which you installed JsDoc (e.g. `/opt/local/jsdoc-toolkit`).
- set `$JSDOCTEMPLATEDIR` to RDFauthor's documentation template dir (e.g. `/opt/local/rdfauthor/misc/jsdoc-template`). The template dir is located under `misc/jsdoc-templates` in your RDFauthor dir.

Assuming `jsrun.sh` is available in you path, you can run JsDoc from within the RDFauthor directory using the following command:

```
jsrun.sh -d=./doc ./src

```

This will build the API documentation in a diectory named `doc` under your RDFauthor directory.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2454c38f5482626f9e23683449bdc460b97c201836630de35ef63b170e2bf163?d=identicon)[white-gecko](/maintainers/white-gecko)

---

Top Contributors

[![cannelony](https://avatars.githubusercontent.com/u/693771?v=4)](https://github.com/cannelony "cannelony (273 commits)")[![0xfeedface](https://avatars.githubusercontent.com/u/173583?v=4)](https://github.com/0xfeedface "0xfeedface (147 commits)")[![seebi](https://avatars.githubusercontent.com/u/510452?v=4)](https://github.com/seebi "seebi (54 commits)")[![nareike](https://avatars.githubusercontent.com/u/3294430?v=4)](https://github.com/nareike "nareike (8 commits)")[![Aklakan](https://avatars.githubusercontent.com/u/839608?v=4)](https://github.com/Aklakan "Aklakan (4 commits)")[![yamalight](https://avatars.githubusercontent.com/u/365944?v=4)](https://github.com/yamalight "yamalight (4 commits)")[![white-gecko](https://avatars.githubusercontent.com/u/1018168?v=4)](https://github.com/white-gecko "white-gecko (3 commits)")[![jbrekle](https://avatars.githubusercontent.com/u/797614?v=4)](https://github.com/jbrekle "jbrekle (1 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (1 commits)")[![shinobu](https://avatars.githubusercontent.com/u/10122316?v=4)](https://github.com/shinobu "shinobu (1 commits)")

### Embed Badge

![Health badge](/badges/aksw-rdfauthor/health.svg)

```
[![Health](https://phpackages.com/badges/aksw-rdfauthor/health.svg)](https://phpackages.com/packages/aksw-rdfauthor)
```

###  Alternatives

[justintadlock/hybrid-font

Helper functions for loading font stylesheets in WordPress themes.

146.4k](/packages/justintadlock-hybrid-font)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
