{"id":17291371,"url":"https://github.com/jeff-zucker/solid-ui-components","last_synced_at":"2025-10-12T14:14:47.476Z","repository":{"id":45575323,"uuid":"353762546","full_name":"jeff-zucker/solid-ui-components","owner":"jeff-zucker","description":"generate high level HTML widgets from RDF data","archived":false,"fork":false,"pushed_at":"2023-03-15T02:24:35.000Z","size":1077,"stargazers_count":10,"open_issues_count":11,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-11T12:29:52.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeff-zucker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-01T16:33:22.000Z","updated_at":"2024-09-11T13:05:00.000Z","dependencies_parsed_at":"2023-01-18T18:02:16.871Z","dependency_job_id":null,"html_url":"https://github.com/jeff-zucker/solid-ui-components","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeff-zucker%2Fsolid-ui-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeff-zucker%2Fsolid-ui-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeff-zucker%2Fsolid-ui-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeff-zucker%2Fsolid-ui-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeff-zucker","download_url":"https://codeload.github.com/jeff-zucker/solid-ui-components/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877986,"owners_count":21176239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T10:40:52.842Z","updated_at":"2025-10-12T14:14:42.424Z","avatar_url":"https://github.com/jeff-zucker.png","language":"JavaScript","readme":"# Solid UI Components - WiP\n\nUse RDF to create data-driven apps, web pages, and user interfaces\n\nThis is a *Work in Progress*.  It works fine but I have not finalized the ontology, cleaned the code or re-added things like forms which worked in a previous version.\n\nPlease see this [demo](https://jeff-zucker.github.io/solid-ui-components/demo.html) for simple examples and [this website](https://jeff-zucker.solidcommunity.net/sp4/) for a website that is entirely built using this library.\n\n## Prerequisites\n\nYou need to include mashlib and comunica in your HTML. The easiest way is using CDNs.  See the sample.html.\n\n## Overview\n\nA *Component* combines a way to get data (a *DataSource*) with a way to display it (a *Template*).\n```turtle\n\u003c#MyMenu\u003e\n  a ui:Component ;\n  ui:dataSource [a ui:DataSource] ;\n  ui:template [a ui:Template] .\n```\nThere are built in templates for many common interactive user interface widgets - menus, tabs, accordions, tables, with slideshows, forms, and more coming soon. For built-in templates, you can simply name the template and optionally use template predicates (see below) to customize the template.\n```\n\u003c#MyBuiltInTemplate\u003e\n  a ui:MenuTemplate ;\n  ui:orientation \"horizontal\" ;\n  ui:position \"right\" .\n```\nYou can also create any template you'd like using Javascript template strings.   For example this would create a list, populating each item with a row of data from the dataSource.\n```\n\u003c#MyCustomTemplate\u003e\n  a ui:Template;\n  ui:before \"\u003cul\u003e\" ;\n  ui:recurring \"\u003cli\u003e${data_from_query}\u003c/li\u003e\" ;\n  ui:after \"\u003c/ul\u003e\" .\n```\nThere are three basic kinds of DataSources - SparqlQuery, Collection, and Link.\n```\n\u003c#MySparqlDataSource\u003e\n  a ui:SparqlQuery ;\n  endpoint \u003cMyEndpoint-Can-be-Multiple\u003e ;\n  query \"\"\"My SPARQL Query String\"\"\" .\n\n\u003c#MyCollectionDataSource\u003e\n  a ui:Collection ;\n  ui:parts ( \u003c#A\u003e \u003c#B\u003e \u003c#C\u003e ) .\n\n\u003c#MyLinkDataSource\u003e\n  a ui:Link ;\n  ui:label \"MyLabel\" ;\n  ui:acceptFormat \"application/json\" ;\n  ui:href \u003cURL\u003e .\n```\nComponents may be included anywhere in a web page like so:\n```html\nStuff Before\n  \u003cdiv data-solid_uic=\"myRDF.ttl#myComponent\"\u003e\u003c/div\u003e\nStuff After\n```\nCoponents can call other components, so it's quite possible to have an entire site or app generated from a single HTML insert.  While the components can make use of Javascript you supply, no coding is necessary - the components have interactivity built in.\n\nComponents can also be included as a library and called from a script.  For example, this returns a fully active DOM element.\n```Javascript\nconst element = await solidUIC.processComponent('component-URL');\n```\nYou can now walk the DOM tree of the element or insert it into a page.\n\n\u0026copy; Jeff Zucker, 2021 all rights reserved; May be freely distributed under an MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeff-zucker%2Fsolid-ui-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeff-zucker%2Fsolid-ui-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeff-zucker%2Fsolid-ui-components/lists"}