Comments (12)
@seth-shaw-unlv It would be feasible enough to join the relator and the term ID with a character, but how would be handle multiple values for that field? Something like pht:5|pht:34
? Would we need the relators:
namespace?
from islandora_workbench.
@mjordan we do need the relators namespace as that is part of the field value. Other namespaces, such as schema, can also be used. So, you could have "relators:pht|5;schema:author|34"
.
from islandora_workbench.
Sounds good. We allow users to define subdelimiter
for multivalued fields, but I don't think we need to provide an option to define the namespace / value pair. Maybe we could reserve :
and not allow it to be used as a subdelimiter (and check that it's not configured as the subdelimter
value).
from islandora_workbench.
Sorry, my last comment is incomplete. Since we allow users to define the multivalue subdelimiter
, maybe a syntax like "relators:pht:5;schema:author:34"
(multivalue subdelimiter is ;
) would be OK, in other words, the namespace / relator / local value triple would need to use :
to join all three parts. Then people could use whatever multivalue subdelimiter they want as long as it's not a :
. The repeated use of the same internal separator means the order and number of parts is significant, which is probably not a big deal as long as that kind of syntax apply to all TypedRelation fields. Would it apply to all TypedRelation fields?
from islandora_workbench.
Since we can now get a field's type during --check
, we can also validate this complex structure.
from islandora_workbench.
@mjordan we can make that work. After we explode on the sub-delimiter we can split each field instance value on the last colon seen to get the field's predicate and tid.
from islandora_workbench.
Cool, I'll work on implementing this over the next day or two.
from islandora_workbench.
OK, got this working for the 'create' task, I'll move on to the 'update' task next. README has also been updated.
from islandora_workbench.
from islandora_workbench.
@seth-shaw-unlv this is working but needs some testing for the various cardinalities. I'll do that over the weekend and then hand it over to you for some smoketesting.
from islandora_workbench.
795da71 in the issue-20 branch adds create and update support for cardinalities of unlimited, 1, and between 1 and unlimited. Note: We do not yet validate the CSV values for fields of this type. I've opened a separate issue for this at #41.
from islandora_workbench.
I've merged the issue-20 branch into master, but if you can do some smoke tests I'd appreciate it. No sweat if you don't have time, I've tested it fairly thoroughly and we can address any issues that come up later.
from islandora_workbench.
Related Issues (20)
- In update tasks, if a node doesn't exist, message to user and log entries use "False" as the node ID
- dedupe_values() in field classes is not working
- Import crashes on encountering big file HOT 3
- Add a page to the docs about "Enhancing the Workbench Experience" HOT 5
- Add validation of ISO 8601 date stings
- Provide way to add additional fields to children created using the "Using subdirectories" compound method HOT 4
- Allow some config settings to be passed in as command-line arguements HOT 2
- create_terms task produces nonsensical log messages HOT 3
- Have Workbench warn the user to deactivate derivative-generating Contexts if it thinks the user is adding media that might trigger those derivatives
- Allow field_member_of to contain URL aliases, node IDs, or full URLs HOT 1
- Workbench fails when the Domain Access module is installed HOT 2
- Using a Google Sheets URL as input_csv doesn't work any more HOT 1
- Allow the use of a local or remote .zip file as source of files HOT 2
- Extracted text data must be in utf-8 HOT 1
- Allow term name as value of paged_content_page_model_tid config setting
- Check that the path component in "log_file_path" setting exists and is writable
- output_csv_include_input_csv and ignore_csv_columns don't play nicely together HOT 2
- Incorrect CSV Export Labels for Taxonomy Terms Using Views Export HOT 1
- Make sure it is clear that pages' sort order must start with 1, not 0
- If password config setting is absent from create task config file, it still shows up in rollback.yml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from islandora_workbench.