Check useRdfType flag; bump version.

This commit is contained in:
Dave Longley 2013-10-02 15:58:28 -04:00
parent 4566c57c28
commit 52b94dd924

View file

@ -1,7 +1,7 @@
<?php <?php
/** /**
* PHP implementation of the JSON-LD API. * PHP implementation of the JSON-LD API.
* Version: 0.2.2 * Version: 0.2.3
* *
* @author Dave Longley * @author Dave Longley
* *
@ -2855,7 +2855,7 @@ class JsonLdProcessor {
$node_map->{$o->value} = (object)array('@id' => $o->value); $node_map->{$o->value} = (object)array('@id' => $o->value);
} }
if($p === self::RDF_TYPE && $object_is_id) { if($p === self::RDF_TYPE && !$options['useRdfType'] && $object_is_id) {
self::addValue( self::addValue(
$node, '@type', $o->value, array('propertyIsArray' => true)); $node, '@type', $o->value, array('propertyIsArray' => true));
continue; continue;