Deprecated: Return type of YDataTable::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/bdavid/prod/georef/yamldoc/ydclasses/ydata.inc.php on line 428

Deprecated: Return type of YamlDataTable::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/bdavid/prod/georef/yamldoc/ydclasses/yamldata.inc.php on line 295
yaml pub]
Menu : html yaml json edit check reindex dump unset
* 

file

name autodescr.inc.php
title autodescr.inc.php - document autodécrit contenant un registre hiérarchique d'objets JSON-LD
doc

Testé sur: - http://localhost/yamldoc/id.php/organizations ou http://id.georef.eu/organizations - http://127.0.0.1/yamldoc/id.php/contactspro ou http://bdavid.alwaysdata.net/yamldoc/id.php/contactspro

Problèmes rencontrés: - http://localhost/yamldoc/id.php/organizations/fr.gouv/CGDD renvoie bien du JSON mais pas du JSON-LD - http://localhost/yamldoc/id.php/organizations/fr.gouv/CGDD/Orléans est un IRI incorrect - comment structurer http://localhost/yamldoc/id.php/organizations en JSON-LD ? - quel est son type ? - quelle définition donner à contents ? - un document AutoDescribed doit-il obligatoirement comporter un champ contents ?

journal
5/11/2020
  • modif AutoDescribed::checkSchemaConformity() pour renvoyer un JsonSchStatus
31/3/2020
  • ajout possibilité que le schéma soit défini par une URL renvoyant un JSON
14-15/3/2020
  • restructuration du champ ydADscrBhv et de son exploitation
  • J'obtiens bien du HTML et du JSON objet par objet mais le JSON n'est pas du JSON-LD
20/2/2020
  • modification de la classe pour gérer le registre des organisations (http://localhost/yamldoc/id.php/organizations ou http://id.georef.eu/organizations)
  • ajout de la possibilité de paramétrer le comportement de la classe
  • manque la sortie en JSON-LD
23/2/2019
  • changement de nom
  • utilisation du champ $schema
  • détection dans new_doc
18/2/2019
  • création

classes

AutoDescribed

title document autodécrit par un schema et avec un comportement paramétré
doc

Document auto-décrit par un schéma JSON défini dans le champ $schema. Le champ ydADscrBhv permet de paramétrer: - l'enregistrement du document en pser - l'extract/extractByUri Conçu pour gérer un registre hiérarchique d'objets JSON-LD