Code Monkey home page Code Monkey logo

rdfjobdefinitionformatbundle's Introduction

RDFJobDefinitionFormatBundle

Build Status

A Symfony2 Bundle for working with the CIP4 Job Definition Format specification.

  • not ready for production use (see Status below)

Installation

RDFJobDefinitionFormatBundle uses the oxm and DoctrineOXMBundle projects from Doctrine.

Step 1: Download the RDFJobDefintionFormatBundle

Using the vendors script

Add the following to your deps file:

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

$ php bin/vendors install

Using composer

Add the following to your composer.json file:

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

Step 2: Configuring the autoloader

Add the RDF namespace to your autoloader:

<?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:

// 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:

<?php
// app/AppKernel.php

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

Configuration

TODO

Unit Tests

Unit tests can be run with phpunit and dependencies included with composer.phar:

$ 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 [email protected]

License

RDFJobDefinitionFormatBundle is licensed under the MIT License. See the LICENSE file for full details.

rdfjobdefinitionformatbundle's People

Contributors

richardfullmer avatar

Stargazers

Matt Foxx avatar ExtraPlus avatar Dominick Peluso avatar  avatar

Watchers

 avatar Dominick Peluso avatar

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.