From 52b94dd9249e3141299933ede1500e9a9f6c4722 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Wed, 2 Oct 2013 15:58:28 -0400 Subject: [PATCH] Check useRdfType flag; bump version. --- jsonld.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonld.php b/jsonld.php index 1e3c632..d790814 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ {$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( $node, '@type', $o->value, array('propertyIsArray' => true)); continue;