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

WIP: SHACL to Jekyll layout #16

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

WIP: SHACL to Jekyll layout #16

wants to merge 7 commits into from

Conversation

white-gecko
Copy link
Member

These changes provide a ShacShifter Serializer for writing templates for Jekyll-RDF

Copy link
Collaborator

@shinobu shinobu left a comment

Choose a reason for hiding this comment

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

I can't resolve this myself without knowing what exactly would be a relevant and correct naming for the Propertyshapes.

The failures on some Shapes (propertyShape has no ... failure)will be fixed after this is rebased with the fix/rdformsbranch

self.logger.debug(nodes)

for property in nodeShape.properties:
shapeName = nodeShape.targetClass[0].rsplit('/', 1)[-1]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Starting here, until line 88 are calls to nodeShape.targetClass without prior testing if targetClass has any entries. There should be a more viable way to get the shapeName, Especially if no targetClass exists (checkable with nodeShape.isSet[variableName] too)

Copy link
Collaborator

Choose a reason for hiding this comment

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

@thoffma and @white-gecko can you help @shinobu

@coveralls
Copy link

coveralls commented May 4, 2019

Coverage Status

Coverage decreased (-2.4%) to 52.924% when pulling 077a718 on jekyll-layout into f2c51f0 on master.

@splattater
Copy link
Collaborator

splattater commented May 9, 2019

@white-gecko, @thoffma the branch is working with the "new" ShacShifter base, yet. Can you check if the html output of jekyll-rdf serialization is as expected/add a test.
I ran python bin/ShacShifter -f jekyll-rdf -s tests/_files/w3c/AddressShape.ttl -o out.html

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.

4 participants