1.0.0-alpha.26 • Published 7 months ago
@ldo/solid-type-index v1.0.0-alpha.26
@ldo/solid-type-index
A library to handle type indexes with LDO.
Installation
npm i @ldo/solid-type-index @ldo/solidUsage
import { initTypeIndex } from "@ldo/solid-type-index";
import { createSolidLdoDataset } from "@ldo/solid";
async function main() {
const myWebId = "https://example.com/profile/card#me";
const solidLdoDataset = createSolidLodDataset();
// Initialize a type index for a webId in case it isn't initialized
await initTypeIndex(myWebId, { solidLdoDataset });
// Get Type Registrations
const typeRegistrations = await getTypeRegistrations(WEB_ID, {
solidLdoDataset,
});
// Get Instance Uris (the URIs for resources that contain an instance of a
// class)
const bookmarkUris: string[] = await getInstanceUris(
"http://www.w3.org/2002/01/bookmark#Bookmark",
typeRegistrations,
{ solidLdoDataset }
);
}
main();Sponsorship
This project was made possible by a grant from NGI Zero Entrust via nlnet. Learn more on the NLnet project page.
Liscense
MIT
1.0.0-alpha.26
7 months ago
1.0.0-alpha.25
7 months ago
1.0.0-alpha.24
7 months ago
1.0.0-alpha.23
7 months ago
1.0.0-alpha.22
7 months ago
1.0.0-alpha.21
7 months ago
1.0.0-alpha.20
7 months ago
1.0.0-alpha.19
7 months ago
1.0.0-alpha.18
7 months ago
1.0.0-alpha.17
7 months ago
1.0.0-alpha.16
7 months ago
1.0.0-alpha.15
7 months ago
1.0.0-alpha.14
7 months ago
1.0.0-alpha.12
7 months ago
1.0.0-alpha.11
7 months ago
1.0.0-alpha.9
8 months ago
1.0.0-alpha.5
8 months ago
1.0.0-alpha.4
8 months ago
1.0.0-alpha.3
8 months ago
1.0.0-alpha.2
9 months ago
1.0.0-alpha.1
10 months ago
0.0.1-1.0.0-alpha.1.0
10 months ago
0.0.1-alpha.32
11 months ago
0.0.1-alpha.30
11 months ago
0.0.1-alpha.29
11 months ago