Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Sarke/jsonld-blank-item
Fix #45, blank nodes
- Loading branch information
f093c49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing a bunch of
Jkphl\Micrometa\Domain\Exceptions\InvalidArgumentException: Empty type list is not allowed
errors for me. I don't have time right now to try to dig into exactly why so I need to pin my version to 3.0.1.f093c49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessarcher can you share some fixtures with us (in a new issue) so we can dive into this? Please also add a stack trace or description on what methods are used when you get this exception.
f093c49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rvanlaak Here is the stack trace from laravel. Hope this helps.
Empty type list is not allowed {"exception":"[object] (Jkphl\\Micrometa\\Domain\\Exceptions\\InvalidArgumentException(code: 1488314667): Empty type list is not allowed at <path>\micrometa\\src\\Micrometa\\Domain\\Item\\ItemSetupTrait.php:124) [stacktrace] #0 <path>\micrometa\\src\\Micrometa\\Domain\\Item\\ItemSetupTrait.php(104): Jkphl\\Micrometa\\Domain\\Item\\Item->valTypes(Array) #1 <path>\micrometa\\src\\Micrometa\\Domain\\Item\\Item.php(77): Jkphl\\Micrometa\\Domain\\Item\\Item->setup(Object(Jkphl\\Micrometa\\Application\\Factory\\PropertyListFactory), Array, Array, '_:b0', '') #2 <path>\micrometa\\src\\Micrometa\\Application\\Item\\Item.php(92): Jkphl\\Micrometa\\Domain\\Item\\Item->__construct(Array, Array, '_:b0', NULL, Object(Jkphl\\Micrometa\\Application\\Factory\\PropertyListFactory)) #3 <path>\micrometa\\src\\Micrometa\\Application\\Factory\\ItemFactory.php(158): Jkphl\\Micrometa\\Application\\Item\\Item->__construct(4, Object(Jkphl\\Micrometa\\Application\\Factory\\PropertyListFactory), Array, Array, Array, '_:b0', NULL, NULL) #4 [internal function]: Jkphl\\Micrometa\\Application\\Factory\\ItemFactory->__invoke(Object(stdClass)) #5 <path>\micrometa\\src\\Micrometa\\Infrastructure\\Parser\\ParsingResult.php(77): array_map(Object(Jkphl\\Micrometa\\Application\\Factory\\ItemFactory), Array) #6 <path>\micrometa\\src\\Micrometa\\Infrastructure\\Parser\\JsonLD.php(125): Jkphl\\Micrometa\\Infrastructure\\Parser\\ParsingResult->__construct(4, Array) #7 <path>\micrometa\\src\\Micrometa\\Application\\Service\\ExtractorService.php(60): Jkphl\\Micrometa\\Infrastructure\\Parser\\JsonLD->parseDom(Object(DOMDocument)) #8 <path>\micrometa\\src\\Micrometa\\Ports\\Parser.php(146): Jkphl\\Micrometa\\Application\\Service\\ExtractorService->extract(Object(DOMDocument), Object(Jkphl\\Micrometa\\Infrastructure\\Parser\\JsonLD)) #9 <path>\micrometa\\src\\Micrometa\\Ports\\Parser.php(108): Jkphl\\Micrometa\\Ports\\Parser->extractItems(Object(DOMDocument), Object(Generator)) #10 Jkphl\\Micrometa\\Ports\\Parser->__invoke('https://stackov...')
@jessarcher Thanks for highlighting the issue.