Skip to content

Aliases #23

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

Merged
Merged

Conversation

simonoakesepimorphics
Copy link
Collaborator

Fixes #12
Support attribute aliasing using alias graphs.

# Conflicts:
#	binary-array-ld-cli/src/test/kotlin/net/bald/BinaryArrayConvertCliTest.kt
#	binary-array-ld-lib/src/main/kotlin/net/bald/model/ModelBinaryArrayBuilder.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayBuilderTest.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayConverterTest.kt
…ternal

# Conflicts:
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayConverterTest.kt
# Conflicts:
#	binary-array-ld-cli/src/test/kotlin/net/bald/BinaryArrayConvertCliTest.kt
#	binary-array-ld-lib/src/main/kotlin/net/bald/model/ModelBinaryArrayBuilder.kt
#	binary-array-ld-lib/src/main/kotlin/net/bald/vocab/BALD.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayBuilderTest.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayConverterTest.kt
#	binary-array-ld-netcdf/src/main/kotlin/net/bald/netcdf/NetCdfBinaryArray.kt
#	binary-array-ld-netcdf/src/test/kotlin/net/bald/netcdf/NetCdfBinaryArrayTest.kt
#	binary-array-ld-test/src/main/kotlin/bald/model/ModelVerifier.kt
#	binary-array-ld-test/src/main/kotlin/bald/netcdf/CdlConverter.kt
#	binary-array-ld-test/src/main/kotlin/bald/netcdf/NcmlConverter.kt
# Conflicts:
#	binary-array-ld-cli/src/test/kotlin/net/bald/BinaryArrayConvertCliTest.kt
#	binary-array-ld-lib/src/main/kotlin/net/bald/BinaryArray.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayConverterTest.kt
#	binary-array-ld-netcdf/src/main/kotlin/net/bald/netcdf/NetCdfBinaryArray.kt
#	binary-array-ld-netcdf/src/main/kotlin/net/bald/netcdf/NetCdfPrefixMappingBuilder.kt
#	binary-array-ld-netcdf/src/test/kotlin/net/bald/netcdf/NetCdfBinaryArrayTest.kt
# Conflicts:
#	binary-array-ld-cli/src/test/kotlin/net/bald/BinaryArrayConvertCliTest.kt
#	binary-array-ld-lib/src/test/kotlin/net/bald/model/ModelBinaryArrayConverterTest.kt
# Conflicts:
#	binary-array-ld-cli/src/main/kotlin/net/bald/BinaryArrayConvertCli.kt
#	binary-array-ld-demo/src/main/java/net/bald/NetCdfConvertJava.java
# Conflicts:
#	binary-array-ld-cli/src/main/kotlin/net/bald/BinaryArrayConvertCli.kt
#	binary-array-ld-cli/src/test/kotlin/net/bald/BinaryArrayConvertCliTest.kt
#	binary-array-ld-netcdf/src/test/kotlin/net/bald/netcdf/NetCdfBinaryArrayTest.kt
# Conflicts:
#	binary-array-ld-cli/src/main/kotlin/net/bald/BinaryArrayConvertCli.kt
#	binary-array-ld-lib/src/main/kotlin/net/bald/model/ModelVarBuilder.kt
@CMayNorris
Copy link
Collaborator

Thanks for this Simon. Looks good!
As the code gets larger I think future developers and I, as a reviewer, would benefit from some inline comments regarding which requirements are being met. In particular this would be useful in the test classes and around the model verification. Just a string including the lettered and numbered requirement would help identify the aims of each test or set of tests.
Thank you

skos:prefLabel a rdf:Property ;
dct:identifier "prefLabel" .

bald:Organisation dct:identifier "binary-array-ld-org" .
Copy link
Collaborator

@CMayNorris CMayNorris Nov 27, 2020

Choose a reason for hiding this comment

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

Could you explain why the bald:Organisation line does not need to include a declaration of ObjectProperty or Property? Is it implied?
Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a test case for attribute value aliases, so it is the identifier of a generic resource rather than a property.

@simonoakesepimorphics
Copy link
Collaborator Author

Thanks for this Simon. Looks good!
As the code gets larger I think future developers and I, as a reviewer, would benefit from some inline comments regarding which requirements are being met. In particular this would be useful in the test classes and around the model verification. Just a string including the lettered and numbered requirement would help identify the aims of each test or set of tests.
Thank you

I've added some annotations referring to the requirements classes in the places where I think they're relevant. There are also a number of tests which test the "non-normative" part of the spec, which I haven't linked to a specific requirement. We could link those to the document fragments in the draft spec / spec project if appropriate but I don't know how permanent those are.

@CMayNorris
Copy link
Collaborator

Thanks for adding the requirement references, they are very helpful - Please continue to add these as new tests are added.
Thanks also for the explanation and link to the spec regarding my question.
This all looks good to me, I will approve and merge.
Thanks for all the work!

@CMayNorris CMayNorris merged commit 9c4d7ad into binary-array-ld:master Dec 3, 2020
@simonoakesepimorphics simonoakesepimorphics deleted the feature/12-aliases branch April 28, 2021 14:00
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.

Attribute Aliasing
2 participants