I am creating an Angular application to save linked data in a pod. I am however new to linked data and using ontologies and am trying to find the best way to create for instance a survey with questions and answers following this ontology: The Survey Ontology and store it in a Solid pod. But how do I do this via the solid libraries using SolidDataset and Things? Do I need to manually set all these fields and urls or is there another way? How do I link then an Answer to a Question?
/**
* A [[Thing]] whose full Subject URL will be determined when it is persisted.
*/
export declare type ThingLocal = Thing & {
url: LocalNodeIri;
};
/**
* Represents the BlankNode that will be initialised to a NamedNode when persisted.
*
* This is a Blank Node with a `name` property attached, which will be used to construct this
* Node's full URL once it is persisted, where it will transform into a Named Node.
*
* @hidden Utility type; library users should not need to interact with LocalNodes directly.
*/
export declare type LocalNode = NamedNode<LocalNodeIri>;
Yes indeed, but they are in seperate SolidDatasets. I expected the url of the Thing to be absolute, but it’s relative, so it only contains the part behind the dataset url. So I fixed it with concatenating the solidDataset urls with the Thing relative urls… . not ideal…
The URL of a Thing is relative until it is saved somewhere - after all, before saving it somewhere, it cannot be known yet what the absolute URL will be.
(Keep in mind that the data is immutable, i.e. if you get a Thing from a SolidDataset, its URL won’t change even if you later save that SolidDataset. You’ll have to pull the updated Thing from the SolidDataset that represents stored data to get the full URL.)