go-fed / activity

ActivityStreams & ActivityPub in golang, oh my!
BSD 3-Clause "New" or "Revised" License
702 stars 111 forks source link

astool: no ontology for http://www.w3.org/TR/activitystreams-vocabulary #117

Closed zauberstuhl closed 4 years ago

zauberstuhl commented 4 years ago

Please Describe The Problematic Behavior

astool panics if executed with the example spec file.

> ./astool/astool -spec astool/activitystreams.jsonld -spec astool/example_custom_spec.jsonld ./streams
Auto-detected path: github.com/go-fed/activity
Reading input specifications...
Parsing 2 vocabularies...
panic: no ontology for https://www.w3.org/TR/activitystreams-vocabulary

Please Describe The Expected Behavior

no panics ;)


workaround: change as to https://www.w3.org/ns/activitystreams

cjslep commented 4 years ago

So generating with multiple files works with the activity streams and security ontologies:

$GOPATH/bin/astool -spec ../astool/activitystreams.jsonld -spec ../astool/security-v1.jsonld .

Guess I just need to look into the example file specifically.

cjslep commented 4 years ago

Fixed in cd97d44b995edbad434085b7b4a87880f8648531