Skip to content

Instantly share code, notes, and snippets.

@e2thex
Created November 9, 2012 14:57
Show Gist options
  • Select an option

  • Save e2thex/4046162 to your computer and use it in GitHub Desktop.

Select an option

Save e2thex/4046162 to your computer and use it in GitHub Desktop.
$e = entity_load('resource_type', array('http://ccr.nhccn.com.au/datasets/global/documents/16964'));
entity_save('resource_type', $e);
StructuredDynamics\structwsf\php\api\ws\crud\update\CrudUpdateQuery::__set_state(array(
'endpoint' => 'crud/update/',
'method' => 'post',
'mime' => 'resultset',
'timeout' => 0,
'resultset' => NULL,
'network' => '',
'supportedMimes' =>
array (
0 => 'text/xml',
1 => 'application/json',
2 => 'application/rdf+xml',
3 => 'application/rdf+n3',
4 => 'application/iron+json',
5 => 'application/iron+csv',
6 => 'resultset',
),
'httpStatus' => '503',
'httpStatusMessage' => 'Service Unavailable',
'httpStatusMessageDescription' => 'Can\'t reach remote server (<url> malformed)',
'params' =>
array (
'interface' => 'default',
'dataset' => 'http%3A%2F%2Fccr.nhccn.com.au%2Fdatasets%2Fglobal%2Fdocuments%2F',
'mime' => 'application%2Frdf%2Bn3',
'document' => '%40prefix+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E+.%0A%40prefix+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E+.%0A%40prefix+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E+.%0A%40prefix+iron%3A+%3Chttp%3A%2F%2Fpurl.org%2Fontology%2Firon%23%3E+.%0A%40prefix+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E+.%0A%40prefix+wsf%3A+%3Chttp%3A%2F%2Fpurl.org%2Fontology%2Fwsf%23%3E+.%0A%40prefix+bibo%3A+%3Chttp%3A%2F%2Fpurl.org%2Fontology%2Fbibo%2F%3E+.%0A%0A%3Chttp%3A%2F%2Fccr.nhccn.com.au%2Fdatasets%2Fglobal%2Fdocuments%2F16964%3E+a+bibo%3ADocument+.%0A%0A',
),
'error' =>
StructuredDynamics\structwsf\framework\QuerierError::__set_state(array(
'id' => 'HTTP-500',
'level' => 'warning',
'webservice' => '/crud/update/',
'name' => 'Can\'t reach remote server',
'description' => 'Can\'t reach remote server (<url> malformed)',
'debugInfo' => false,
)),
))
Notice: Trying to get property of non-object in ResourceTypeController->save() (line 211 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.controller.inc).
Notice: Trying to get property of non-object in ResourceTypeController->save() (line 228 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.controller.inc).
Notice: Trying to get property of non-object in ResourceTypeController->save() (line 228 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.controller.inc).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1562 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Undefined index: in structentities_get_rdf_entity() (line 1562 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1566 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1596 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Trying to get property of non-object in ResourceTypeController->save() (line 234 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.controller.inc).
Notice: Trying to get property of non-object in ResourceTypeController->save() (line 235 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.controller.inc).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1562 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Undefined index: in structentities_get_rdf_entity() (line 1562 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1566 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Notice: Trying to get property of non-object in structentities_get_rdf_entity() (line 1596 of /opt/development/esummerfield/nhccn/drupal_docroot/sites/all/modules/construct/modules/structentities/structentities.module).
Can't save this entity into this dataset: [503] Service Unavailable - Can't reach remote server (<url> malformed)
array (
'http://ccr.nhccn.com.au/datasets/global/documents/16964' =>
ResourceType::__set_state(array(
'type' =>
array (
0 => 'bibo_document',
1 => 'nhccn_externalpage',
),
'label' => NULL,
'weight' => 0,
'entityType' => 'resource_type',
'entityInfo' =>
array (
'label' => 'Resource Type',
'entity class' => 'ResourceType',
'controller class' => 'ResourceTypeController',
'base table' => 'resource_type',
'field cache' => false,
'entity cache' => true,
'fieldable' => true,
'bundle of' => 'resource',
'exportable' => true,
'entity keys' =>
array (
'id' => 'id',
'name' => 'type',
'label' => 'label',
'description' => 'description',
'status' => 'status',
'ignoreResource' => 'ignoreResource',
'revision' => '',
'bundle' => '',
),
'module' => 'structentities',
'admin ui' =>
array (
'path' => 'admin/structure/resource-types',
'file' => 'structentities.admin.inc',
'controller class' => 'ResourceTypeUIController',
),
'access callback' => 'resource_type_access',
'static cache' => true,
'load hook' => 'resource_type_load',
'bundles' =>
array (
'resource_type' =>
array (
'label' => 'Resource Type',
'rdf_mapping' =>
array (
),
),
),
'view modes' =>
array (
),
'translation' =>
array (
),
'schema_fields_sql' =>
array (
'base table' =>
array (
0 => 'id',
1 => 'type',
2 => 'label',
3 => 'description',
4 => 'ignoreResource',
5 => 'status',
6 => 'module',
),
),
'configuration' => true,
),
'idKey' => 'id',
'nameKey' => 'type',
'statusKey' => 'status',
'uri' => 'http://ccr.nhccn.com.au/datasets/global/documents/16964',
'obj' =>
StructuredDynamics\structwsf\framework\Subject::__set_state(array(
'uri' => 'http://ccr.nhccn.com.au/datasets/global/documents/16964',
'description' =>
array (
'type' =>
array (
0 => 'http://purl.org/ontology/bibo/Document',
1 => 'http://purl.org/ontology/nhccn#ExternalPage',
),
'http://purl.org/dc/terms/created' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => '15/FEB/02',
),
),
'http://purl.org/dc/terms/modified' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => '31/JAN/11',
),
),
'http://purl.org/ontology/nhccn#url' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => 'http://www.betterhealth.vic.gov.au/bhcv2/bhcarticles.nsf/pages/Kidney_failure',
),
),
'http://purl.org/ontology/nhccn#status' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => 'Published',
),
),
'http://purl.org/dc/terms/hasFormat' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => 'Text/html',
),
),
'http://purl.org/ontology/nhccn#partner' =>
array (
0 =>
array (
'uri' => 'http://ccr.nhccn.com.au/datasets/partners/better_health_channel',
),
),
'http://purl.org/dc/terms/language' =>
array (
0 =>
array (
'type' => 'http://www.w3.org/2000/01/rdf-schema#Literal',
'value' => 'en',
),
),
'http://purl.org/dc/terms/subject' =>
array (
0 =>
array (
'uri' => 'http://purl.org/ontology/doha#renal_dialysis',
),
1 =>
array (
'uri' => 'http://purl.org/ontology/doha#kidney_failure',
),
2 =>
array (
'uri' => 'http://purl.org/ontology/doha#kidney_transplantation',
),
),
'http://purl.org/dc/terms/isPartOf' =>
array (
0 =>
array (
'uri' => 'http://ccr.nhccn.com.au/datasets/global/documents/',
),
),
'prefLabel' => 'Kidney failure',
'description' => 'Kidney disease can sometimes lead to kidney failure. If kidney disease is found early, medications and lifestyle changes can increase the life of your kidneys. However, if the kidneys fail completely, they don\'t often recover. People with kidney failure need dialysis or a transplant to stay alive.',
),
)),
'rdf_type' =>
array (
0 => 'http://purl.org/ontology/bibo/Document',
1 => 'http://purl.org/ontology/nhccn#ExternalPage',
),
'preflabel' =>
array (
0 => 'Kidney failure',
),
'iron_preflabel' =>
array (
0 => 'Kidney failure',
),
'description' =>
array (
0 => 'Kidney disease can sometimes lead to kidney failure. If kidney disease is found early, medications and lifestyle changes can increase the life of your kidneys. However, if the kidneys fail completely, they don\'t often recover. People with kidney failure need dialysis or a transplant to stay alive.',
),
'iron_description' =>
array (
0 => 'Kidney disease can sometimes lead to kidney failure. If kidney disease is found early, medications and lifestyle changes can increase the life of your kidneys. However, if the kidneys fail completely, they don\'t often recover. People with kidney failure need dialysis or a transplant to stay alive.',
),
'dcterms_created' =>
array (
0 => '15/FEB/02',
),
'dcterms_modified' =>
array (
0 => '31/JAN/11',
),
'nhccn_url' =>
array (
0 => 'http://www.betterhealth.vic.gov.au/bhcv2/bhcarticles.nsf/pages/Kidney_failure',
),
'nhccn_status' =>
array (
0 => 'Published',
),
'dcterms_hasformat' =>
array (
0 => 'Text/html',
),
'nhccn_partner' =>
array (
0 => 'http://ccr.nhccn.com.au/datasets/partners/better_health_channel',
),
'dcterms_language' =>
array (
0 => 'en',
),
'dcterms_subject' =>
array (
0 => 'http://purl.org/ontology/doha#renal_dialysis',
1 => 'http://purl.org/ontology/doha#kidney_failure',
2 => 'http://purl.org/ontology/doha#kidney_transplantation',
),
'dcterms_ispartof' =>
array (
0 => 'http://ccr.nhccn.com.au/datasets/global/documents/',
),
'is_new' => true,
'rdf_mapping' =>
array (
'rdftype' => 'bibo:Document',
'dcterms_hasformat' =>
array (
'predicates' =>
array (
0 => 'dcterms:hasFormat',
),
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'nhccn_partner' =>
array (
'predicates' =>
array (
0 => 'nhccn:partner',
),
'type' => 'rel',
),
'nhccn_status' =>
array (
'predicates' =>
array (
0 => 'nhccn:status',
),
),
'nhccn_url' =>
array (
'predicates' =>
array (
0 => 'nhccn:url',
),
),
'dcterms_modified' =>
array (
'predicates' =>
array (
0 => 'dcterms:modified',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'dcterms_created' =>
array (
'predicates' =>
array (
0 => 'dcterms:created',
),
),
'dcterms_language' =>
array (
'predicates' =>
array (
0 => 'dcterms:language',
),
),
'dcterms_subject' =>
array (
'predicates' =>
array (
0 => 'dcterms:subject',
),
'type' => 'rel',
),
'nhccn_contentcategory' =>
array (
'predicates' =>
array (
0 => 'nhccn:contentCategory',
),
),
'nhccn_lifestage' =>
array (
'predicates' =>
array (
0 => 'nhccn:lifeStage',
),
),
'dcterms_audience' =>
array (
'predicates' =>
array (
0 => 'dcterms:audience',
),
),
'skos_2004_editorialnote' =>
array (
'predicates' =>
array (
0 => 'skos_2004:editorialNote',
),
),
'nhccn_copyrights' =>
array (
'predicates' =>
array (
0 => 'nhccn:copyrights',
),
),
'iron_altlabel' =>
array (
'predicates' =>
array (
0 => 'iron:altLabel',
),
),
),
'dataset' => 'http://ccr.nhccn.com.au/datasets/global/documents/',
)),
)
array (
'bibo_document' =>
array (
'type' => 'resource',
'bundle' => 'bibo_document',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'bibo:Document',
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'dcterms_hasformat' =>
array (
'predicates' =>
array (
0 => 'dcterms:hasFormat',
),
),
'nhccn_partner' =>
array (
'predicates' =>
array (
0 => 'nhccn:partner',
),
'type' => 'rel',
),
'nhccn_status' =>
array (
'predicates' =>
array (
0 => 'nhccn:status',
),
),
'nhccn_url' =>
array (
'predicates' =>
array (
0 => 'nhccn:url',
),
),
'dcterms_modified' =>
array (
'predicates' =>
array (
0 => 'dcterms:modified',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'dcterms_created' =>
array (
'predicates' =>
array (
0 => 'dcterms:created',
),
),
'dcterms_language' =>
array (
'predicates' =>
array (
0 => 'dcterms:language',
),
),
'dcterms_subject' =>
array (
'predicates' =>
array (
0 => 'dcterms:subject',
),
'type' => 'rel',
),
'nhccn_contentcategory' =>
array (
'predicates' =>
array (
0 => 'nhccn:contentCategory',
),
),
'nhccn_lifestage' =>
array (
'predicates' =>
array (
0 => 'nhccn:lifeStage',
),
),
'dcterms_audience' =>
array (
'predicates' =>
array (
0 => 'dcterms:audience',
),
),
'skos_2004_editorialnote' =>
array (
'predicates' =>
array (
0 => 'skos_2004:editorialNote',
),
),
'nhccn_copyrights' =>
array (
'predicates' =>
array (
0 => 'nhccn:copyrights',
),
),
'iron_altlabel' =>
array (
'predicates' =>
array (
0 => 'iron:altLabel',
),
),
),
),
'owl_class' =>
array (
'type' => 'resource',
'bundle' => 'owl_class',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'owl:Class',
),
'rdfs_subclassof' =>
array (
'predicates' =>
array (
0 => 'rdfs:subClassOf',
),
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'dcterms_created' =>
array (
'predicates' =>
array (
0 => 'dcterms:created',
),
),
'dcterms_modified' =>
array (
'predicates' =>
array (
0 => 'dcterms:modified',
),
),
'doha_meshui' =>
array (
'predicates' =>
array (
0 => 'doha:meshUI',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'iron_altlabel' =>
array (
'predicates' =>
array (
0 => 'iron:altLabel',
),
),
'umbel_superclassof' =>
array (
'predicates' =>
array (
0 => 'umbel:superClassOf',
),
'type' => 'rel',
),
'rdfs_seealso' =>
array (
'predicates' =>
array (
0 => 'rdfs:seeAlso',
),
),
'skos_2004_scopenote' =>
array (
'predicates' =>
array (
0 => 'skos_2004:scopeNote',
),
),
'doha_indexernote' =>
array (
'predicates' =>
array (
0 => 'doha:indexerNote',
),
),
'rdfs_comment' =>
array (
'predicates' =>
array (
0 => 'rdfs:comment',
),
),
'rdfs_isdefinedby' =>
array (
'predicates' =>
array (
0 => 'rdfs:isDefinedBy',
),
),
),
),
'nhccn_hipartner' =>
array (
'type' => 'resource',
'bundle' => 'nhccn_hipartner',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'nhccn:HIPartner',
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'foaf_homepage' =>
array (
'predicates' =>
array (
0 => 'foaf:homepage',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'nhccn_htmlurl' =>
array (
'predicates' =>
array (
0 => 'nhccn:htmlUrl',
),
),
'foaf_logo' =>
array (
'predicates' =>
array (
0 => 'foaf:logo',
),
),
),
),
'owl_datatypeproperty' =>
array (
'type' => 'resource',
'bundle' => 'owl_datatypeproperty',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'owl:DatatypeProperty',
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'rdfs_subpropertyof' =>
array (
'predicates' =>
array (
0 => 'rdfs:subPropertyOf',
),
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'rdfs_comment' =>
array (
'predicates' =>
array (
0 => 'rdfs:comment',
),
),
'rdfs_isdefinedby' =>
array (
'predicates' =>
array (
0 => 'rdfs:isDefinedBy',
),
),
'rdfs_domain' =>
array (
'predicates' =>
array (
0 => 'rdfs:domain',
),
),
'rdfs_range' =>
array (
'predicates' =>
array (
0 => 'rdfs:range',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'umbel_superpropertyof' =>
array (
'predicates' =>
array (
0 => 'umbel:superPropertyOf',
),
),
'sco_displaycontrol' =>
array (
'predicates' =>
array (
0 => 'sco:displayControl',
),
),
'owl_equivalentproperty' =>
array (
'predicates' =>
array (
0 => 'owl:equivalentProperty',
),
),
'skos_2004_note' =>
array (
'predicates' =>
array (
0 => 'skos_2004:note',
),
),
'sco_maxcardinality' =>
array (
'predicates' =>
array (
0 => 'sco:maxCardinality',
),
),
),
),
'owl_objectproperty' =>
array (
'type' => 'resource',
'bundle' => 'owl_objectproperty',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'owl:ObjectProperty',
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'rdfs_subpropertyof' =>
array (
'predicates' =>
array (
0 => 'rdfs:subPropertyOf',
),
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'rdfs_comment' =>
array (
'predicates' =>
array (
0 => 'rdfs:comment',
),
),
'rdfs_isdefinedby' =>
array (
'predicates' =>
array (
0 => 'rdfs:isDefinedBy',
),
),
'rdfs_range' =>
array (
'predicates' =>
array (
0 => 'rdfs:range',
),
),
'rdfs_domain' =>
array (
'predicates' =>
array (
0 => 'rdfs:domain',
),
),
'umbel_superpropertyof' =>
array (
'predicates' =>
array (
0 => 'umbel:superPropertyOf',
),
),
'skos_2004_note' =>
array (
'predicates' =>
array (
0 => 'skos_2004:note',
),
),
'iron_description' =>
array (
'predicates' =>
array (
0 => 'iron:description',
),
),
'vs_term_status' =>
array (
'predicates' =>
array (
0 => 'vs:term_status',
),
),
),
),
'owl_thing' =>
array (
'type' => 'resource',
'bundle' => 'owl_thing',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'owl:Thing',
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'rdfs_seealso' =>
array (
'predicates' =>
array (
0 => 'rdfs:seeAlso',
),
),
'rdfs_comment' =>
array (
'predicates' =>
array (
0 => 'rdfs:comment',
),
),
'rdfs_isdefinedby' =>
array (
'predicates' =>
array (
0 => 'rdfs:isDefinedBy',
),
),
),
),
'sco_component' =>
array (
'type' => 'resource',
'bundle' => 'sco_component',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'sco:Component',
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
),
),
'sco_ontologytype' =>
array (
'type' => 'resource',
'bundle' => 'sco_ontologytype',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'sco:OntologyType',
),
'iron_preflabel' =>
array (
'predicates' =>
array (
0 => 'iron:prefLabel',
),
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'rdfs_comment' =>
array (
'predicates' =>
array (
0 => 'rdfs:comment',
),
),
),
),
'foaf_person' =>
array (
'type' => 'resource',
'bundle' => 'foaf_person',
'mapping' =>
array (
'rdftype' =>
array (
0 => 'foaf:Person',
),
'wsf_objectlabel' =>
array (
'predicates' =>
array (
0 => 'wsf:objectLabel',
),
),
'rdfs_isdefinedby' =>
array (
'predicates' =>
array (
0 => 'rdfs:isDefinedBy',
),
),
'rdfs_seealso' =>
array (
'predicates' =>
array (
0 => 'rdfs:seeAlso',
),
),
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment