Comments (1)
Adding some notes to clarify the use case for string_serialization as a slot property
biolink/biolinkml#301 has serialization/parsing for the canonical serialization for a class, which is great, but it can also be useful at the slot level
Consider
classes:
person:
slot_usage:
firstname:
lastname:
fullname:
description: "E.g. Chris Mungall"
string_serialization: "{firstname} {lastname}"
phonebook_entry:
description: "E.g. Mungall, Chris"
string_serialization: "{lastname}, {firstname}"
journal_entry:
description: "E.g. Mungall, C"
string_serialization: "{lastname}, {firstname}[0:1]"
string_template: "{firstname} {lastname}"
(the journal_entry be out of bounds for expressivity but just adding for illustrative purposes)
The class level string_template may be redundant with the canonical fullname
but I think that is OK
The main point is that it's useful to have different serializations for a slot
In all cases, the interpolation is evaluated at the level of the containing class instance
This is also useful for representing dosdps, e.g. a blml class may have seperate serializations for rdfs:label, owl:equivalentClass, ...
from linkml.
Related Issues (20)
- Date slots are rendered as String fields in Java
- Representing External Ontology in LinkML Schema for JSON-to-RDF Mapping
- Validation error for datetime/date data in YAML HOT 3
- Validation error for date_or_datetime type HOT 2
- SchemaView does not support configurable importmap
- Link is broken in docs (on https://linkml.io/linkml/data/csvs.html#container-objects) HOT 2
- Handling Similar but Not Identical Names for JSON-to-RDF Conversion in LinkML HOT 5
- 2 of 3 unit tests fail in `test_pydantic_polymorphism.py` HOT 2
- Executing tutorials doesn't pass HOT 2
- linkml-validate does not check duplicate key HOT 3
- Add `--include-range-class-descendants` option to "linkml-validate" HOT 1
- update pydantic to v2.0 HOT 3
- dumping data to RDF fails IF any slots don't have a range asserted AND there's no default_range HOT 1
- Error converting json to rdf HOT 1
- Add _base to documentation
- Add loader class for TSV and CSV data HOT 1
- Add CLI layer for new Validator class HOT 2
- Design and implement new validation report and result classes for new Validator class to use HOT 3
- Add loader and validator plugin to replace existing SparqlDataValidator class HOT 2
- Materialize structured patterns in all relevant generators HOT 3
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 linkml.