Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Use-case : associating an icon to Shapes #27

Open
tfrancart opened this issue Oct 4, 2023 · 2 comments
Open

Use-case : associating an icon to Shapes #27

tfrancart opened this issue Oct 4, 2023 · 2 comments

Comments

@tfrancart
Copy link
Contributor

tfrancart commented Oct 4, 2023

See #16 for the complete story.

I need to associate an icon to node shapes, (could also be to property shapes).

Note : the ability to associate an icon code (e.g. "fad fa-user") from an icon library such as fontawesome would also be nice.

Currently I use a custom property (http://data.sparna.fr/ontologies/volipi/index-en.html#iconName) for the icon name, then default to another property to read an icon image (http://data.sparna.fr/ontologies/volipi/index-en.html#icon)

@bergos
Copy link
Member

bergos commented Oct 16, 2023

@tfrancart can you please provide an example given as Turtle? Maybe you can also give more context based on that example. I think that would be useful for further discussions.

@tfrancart
Copy link
Contributor Author

Associating a FontAwesome icon code to a NodeShape :

ex:PersonShape a sh:NodeShape ;
xxxx:iconName "fad fa-user" ;
.

or using a URL :

ex:PersonShape a sh:NodeShape ;
xxxx:icon <https://upload.wikimedia.org/wikipedia/commons/8/8e/Font_Awesome_5_solid_user.svg> ;
.

At property shape level

ex:PersonShape a sh:NodeShape ;
sh:property [
  sh:path foaf:name ;
  xxxx:icon <https://upload.wikimedia.org/wikipedia/commons/d/db/Hello_my_name_is_sticker.svg> ;
]
.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants