2017 © Pedro Peláez
 

symfony-bundle job-definition-format-bundle

This Bundle provides various tools to read, write and modify JDF

image

rdf/job-definition-format-bundle

This Bundle provides various tools to read, write and modify JDF

  • Sunday, January 22, 2012
  • by richardfullmer
  • Repository
  • 2 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

RDFJobDefinitionFormatBundle

Build Status, (*1)

A Symfony2 Bundle for working with the CIP4 Job Definition Format specification., (*2)

  • not ready for production use (see Status below)

Installation

RDFJobDefinitionFormatBundle uses the oxm and DoctrineOXMBundle projects from Doctrine., (*3)

Step 1: Download the RDFJobDefintionFormatBundle

Using the vendors script

Add the following to your deps file:, (*4)

[RDFJobDefinitionFormatBundle]
    git=git://github.com/richardfullmer/RDFJobDefinitionFormatBundle.git
    target=/bundles/RDF/JobDefinitionFormatBundle

[doctrine-oxm]
    git=http://github.com/doctrine/oxm.git
    target=/doctrine-oxm

[DoctrineOXMBundle]
    git=http://github.com/doctrine/DoctrineOXMBundle.git
    target=/bundles/Doctrine/Bundle/OXMBundle

And run the vendors script:, (*5)

$ php bin/vendors install

Using composer

Add the following to your composer.json file:, (*6)

{
    "require": {
        "rdf/job-definition-format-bundle": "master-dev"
    }
}

Step 2: Configuring the autoloader

Add the RDF namespace to your autoloader:, (*7)

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'RDF'                       => __DIR__.'/../vendor/bundles',
    'Doctrine\\OXM'             => __DIR__.'/../vendor/doctrine-oxm/lib',
    'Doctrine\\Bundle'          => __DIR__.'/../vendor/bundles',
));

And make sure you register the OXM Annotations:, (*8)

// app/autoload.php
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine-oxm/lib/Doctrine/OXM/Mapping/Driver/DoctrineAnnotations.php');

Step 3: Enable the bundle

Enable the bundle in the kernel:, (*9)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new RDF\JobDefinitionFormatBundle\RDFJobDefinitionFormatBundle(),
        new Doctrine\Bundle\OXMBundle\DoctrineOXMBundle(),
    );
}

Configuration

TODO, (*10)

Unit Tests

Unit tests can be run with phpunit and dependencies included with composer.phar:, (*11)

$ wget -nc http://getcomposer.org/composer.phar
$ php composer.phar install
$ phpunit --coverage-text

Status

  • JDF specific data types (COMPLETE)
  • Metadata for serialization with doctrine-oxm (IN PROGRESS)
  • Validation of JDF Entities with Symfony2 Validation library (PLANNED)
  • Builders for easy construction and traversal of JDF objects (PLANNED)
  • ID = IDREF resolution lookup (PLANNED)
  • JDF device capability aware JDF Workflow (PLANNED)

Author

Richard Fullmer richardfullmer@gmail.com, (*12)

License

RDFJobDefinitionFormatBundle is licensed under the MIT License. See the LICENSE file for full details., (*13)

The Versions

22/01 2012

dev-master

9999999-dev http://github.com/richardfullmer

This Bundle provides various tools to read, write and modify JDF

  Sources   Download

MIT

The Requires

 

jdf