Skip to content

Proposal for a byte unit ontology - #35

Closed
kjetilk wants to merge 4 commits into
masterfrom
feature/byte-unit-vocab
Closed

kjetilk wants to merge 4 commits into
masterfrom
feature/byte-unit-vocab

Conversation

@kjetilk

@kjetilk kjetilk commented Oct 25, 2018

Copy link
Copy Markdown
Member

Since I would need an ontology/vocabulary if we were to go with the first alternative of #29 , I decided to sit down and draft one.

Units are a little bit awkward in RDF, I feel, so it is a bit hackish to do it this way, but I think it simplifies things greatly, as evident by the example in #29, where many more triples were needed.

Does this look reasonable? Could we have an ns URI for it?

@kjetilk

kjetilk commented Oct 25, 2018

Copy link
Copy Markdown
Member Author

Uhm, rereading the spec, I found that I had misunderstood what owl:DatatypeProperty is, so hold on, I need to do more reading here...

@kjetilk

kjetilk commented Oct 25, 2018

Copy link
Copy Markdown
Member Author

This has no formal definition, but it should be OK for RDF applications I think...

@kjetilk

kjetilk commented Oct 30, 2018

Copy link
Copy Markdown
Member Author

BTW, I'm thinking that you could encode the conversion between different units by having the multiplier between them available. Is there a standard way to do this?

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good; I would perhaps explicitly list a rdfs:Datatype on every individual unit (even though this can be inferred).

@kjetilk

kjetilk commented Nov 7, 2018

Copy link
Copy Markdown
Member Author

Sure! I added that.

@timbl timbl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we sure these are not duplicated elsewhere? The re should be a machine readable expression of the ratios bewteeen them. Where do we need these?

@kjetilk

kjetilk commented Nov 8, 2018

Copy link
Copy Markdown
Member Author

Are we sure these are not duplicated elsewhere?

I haven't found them anywhere, I have looked in LOV and on Google.

I suppose the "units as datatype" pattern isn't what people tend to prefer, but I think it is often the simplest.

The re should be a machine readable expression of the ratios bewteeen them.

Absolutely, I mentioned that in my own comment above, but I'm not good enough with OWL to know if it could be done with the datatype definition standard (I am aware it is there)

I could include a property e.g. :multiplier for it to denote the multiplier between the unit and a byte, though.

However, I think that could wait, we have a lot of urgent issues open. So, I hope we can get this done now, and that we can add that later.

Where do we need these?

I use it in the quota system: https://github.com/solid/node-solid-server/blob/feature/check-quota/lib/utils.js#L271
I'm just supporting some of the units there, and notes that we should have that multiplier in the ontology.

@kjetilk

kjetilk commented Nov 14, 2018

Copy link
Copy Markdown
Member Author

Seems we went for simplification in #29

@kjetilk kjetilk closed this Nov 14, 2018
@csarven
csarven deleted the feature/byte-unit-vocab branch June 22, 2021 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocker Issue that prevents other issues from completing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants