Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 annotation, annotationPage and choice object improvements #30

Merged
merged 4 commits into from
Jul 26, 2017

Conversation

ndushay
Copy link

@ndushay ndushay commented Jul 26, 2017

I believe the individual commit messages express what this PR is about.

connected to #6

@ndushay ndushay changed the title V3 annotation and choice object (and test) improvements V3 annotation, annotationPage and choice object improvements Jul 26, 2017

def required_keys
super + %w{ motivation }
super + %w{ id motivation target }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing target anywhere in the Presentation 3.0 API JSON-examples. Where does this come from?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annotation itself isn't in the 3.0 API; it has its own spec: http://www.openannotation.org/spec/core/ In the spec it is hasTarget but our JSON expresses it as target

I learned about Annotations for the Triannon linked data project I did a while ago; but mostly I looked at examples -- our purl, Tom Crane's, etc.

def prohibited_keys
super + CONTENT_RESOURCE_PROPERTIES +
%w{ first last total nav_date viewing_direction start_canvas content_annotations }
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking through the 3.0 (alpha) spec, I couldn't find e.g. content_annotations. I guess I must be missing something, otherwise you wouldn't have added this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contentAnnotations is how it would appear in the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants