[Application-profiles-ig] An example

Phil Barker phil.barker at pjjk.co.uk
Tue May 19 19:02:22 BST 2020


On 19/05/2020 18:28, Karen Coyle wrote: >Thanks, Phil - this is a great example. I especially like how the ShEx>"or" of values is used. Does anyone know if a line break works the>same as a space in ShEx - is it any spacing character? I ask that>because I think sometimes it may be more readable if values are placed>on separate lines:>>sdo:Person>sdo:Organization>>vs.>>sdo:人sdo:组织Doesn't seem to matter in ShEx, this works in the js simple web tool <https://rawgit.com/shexSpec/shex.js/extends/packages/shex-webapp/doc/shex-simple.html?interface=minimal&schema=PREFIX%20school%3A%20%3Chttp%3A%2F%2Fschool.example%2F%23%3E%0APREFIX%20xsd%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0A%0A%23%20Node%20constraint%0Aschool%3AenrolleeAge%20xsd%3Ainteger%20MinInclusive%2013%20MaxInclusive%2020%0A%0A%0Aschool%3AEnrollee%20%7B%0A%20%20%23%20Triple%20constraint%20(including%20node%20constraint%20IRI)%0A%20%20ex%3AhasGuardian%20IRI%20%7B1%2C2%7D%0A%7D&data=PREFIX%20ex%3A%20%3Chttp%3A%2F%2Fex.example%2F%23%3E%0APREFIX%20inst%3A%20%3Chttp%3A%2F%2Fexample.com%2Fusers%2F%3E%0A%0Ainst%3AStudent1%20ex%3AhasGuardian%0A%20%20inst%3APerson2%2C%20inst%3APerson3%20.%0A&shape-map=inst%3AStudent1%40%3Chttp%3A%2F%2Fschool.example%2F%23Enrollee%3E> shapes:Author { rdf:type [ sdo:Person sdo:Organization ] ; sdo:givenName xsd:string ; sdo:familyName xsd:string } >>I also note that you place the entity on its own row. I believe I have>captured that before as a question for the group, but will make sure>that we don't lose it.那lets you provide a label for the entity / description shape and another for the first property >I also have a comment on leaving the entity ID cell blank, and will>deal with that separately.Yes, I wrote a python script to read in a variant of the csv format and found that parsing the blank rows was OK. >>>What we still lack is a way to designate constraints between>properties, e.g.:>>foaf:name or (foaf:forename AND foaf:familyname)>>I made some attempts at that but now I don't remember where I put>that. I will do an example illustrating what I think I was thinking.>>Can you please copy this to the DCMI DCAP github? It just makes it>easier to find if we put everything in the one repo. It would go in a>folder of your making under>https://github.com/dcmi/dcap/tree/master/prototypesSure, just wanted to check it was useful first. It's in prototypes/bookclub/ now. Phil >>Thanks!>kc>>On 5/19/20 8:03 AM, Phil Barker wrote:>>In case it is of any interest: I wrote an example application profile>>for a book sharing social network in what I think we are gravitating>>towards (or around) as a CSV format and in ShEx. There's also some>>conformant data.>>>>https://gist.github.com/philbarker/995d3120b4bb07503bfc2d21ee821b2a>>>>The CSV doesn't have everything we have discussed (e.g. doesn't have>>cardinalities) and I made up some of the headings, but I think the>>meaning is clear enough.>>>>Phil>>>>-->>>>Phil Barker <http://people.pjjk.net/phil>.http://people.pjjk.net/phil>>CETIS LLP <https://www.cetis.org.uk>: a cooperative consultancy for>>innovation in education technology.>>PJJK Limited <https://www.pjjk.co.uk>: technology to enhance>>learning; information systems for education.>>>>CETIS is a co-operative limited liability partnership, registered in>>England number OC399090>>PJJK Limited is registered in Scotland as a private limited company,>>SC569282数量。>>>-- Phil Barker <http://people.pjjk.net/phil>.http://people.pjjk.net/philCETIS LLP <https://www.cetis.org.uk>: a cooperative consultancy for innovation in education technology. PJJK Limited <https://www.pjjk.co.uk>: technology to enhance learning; information systems for education. CETIS is a co-operative limited liability partnership, registered in England number OC399090 PJJK Limited is registered in Scotland as a private limited company, number SC569282. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.www.voudr.com/pipermail/application-profiles-ig/attachments/20200519/a8066a81/attachment.htm>


More information about the Application-profiles-ig mailing list