-
Notifications
You must be signed in to change notification settings - Fork 10
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
Shapes and hierarchical metadata schemes #65
Comments
@philbarker Thanks. Looking at what I did, above, even I don't agree with it. So here's my second attempt. First, RDF instance data followed by a TAP: |
I could live with saying that
but perhaps I am missing the point. Also it's a long time since I did anything in XML so I've lost some of the idiom. I'm interested in what @johnhuck thinks. |
I'm not sure if I've absorbed all of the issues here, but I'm not seeing why you couldn't apply the same approach we use for regular shapes to nested structures: bookShape | author | authorShape Maybe there's something I don't understand. However, I don't find it odd to call authorShape a valueShape, because a TAP shape is only an informal entity that exists in the context of a TAP model. It isn't an RDF class, although we probably intuitively think of shapes as being like that. So for me, the purpose of the shapeID and valueShape columns are to reference each other, but that's it. The problem I ran into (and tried to solve) with my other XML modelling attempt was that each element in a nested structure can potentially have a cardinality or other restriction, including wrapper elements, so in my solution I made sure each element could have its own row. That's maybe tangential to this question, but that's the background on my thinking. |
+1 - especially: "the purpose of the shapeID and valueShape columns are to reference each other, but that's it." Like @philbarker , I could live with the notion that the content of an element is its value or rather, I defer to XML experts as to whether this is a reasonable thing to say. The Shape ID really just names a set of statement constraints for the purpose of making that set of statement constraints referenceable as a Value Shape. Full stop. |
@johnhuck suggests using the xml element "author" as a property. That seems to retain the XML structure. (It also seems obvious! doh!) Presumably cardinality of the shape would be given on the row with the propertyID -- at least, that's how we've done it so far. But is there a better way? Also, would there be other restrictions on the shape that would need to be expressed? |
First, a shape as we see it in RDF, and how it is rendered in the TAP:
The text was updated successfully, but these errors were encountered: