# Collection with tripledoc

**URL:** <https://forum.solidproject.org/t/collection-with-tripledoc/3071>\
**Category:** General Discussion\
**Created:** [May 18, 2020, 12:34am UTC](https://forum.solidproject.org/t/collection-with-tripledoc/3071 "2020-05-18T00:34:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Vincent](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@Vincent](https://forum.solidproject.org/u/Vincent)\
**Post date:** [May 18, 2020, 11:15am UTC](https://forum.solidproject.org/t/collection-with-tripledoc/3071/4 "2020-05-18T11:15:26Z")

</div>

> [@Smag0](#):
>
> well it seems to give me a blankNode, [https://holacracy.solid.community/public/meeting/gouvernance/AAAAA/index.ttl](https://holacracy.solid.community/public/meeting/gouvernance/AAAAA/index.ttl)

I don’t see a BlankNode in there?

> but mashlib don’t be agree [https://holacracy.solid.community/public/meeting/gouvernance/AAAAA/index.ttl#this](https://holacracy.solid.community/public/meeting/gouvernance/AAAAA/index.ttl#this)

I’m not quite sure what it’s trying to do there, but I’m expecting it to be a bug in mashlib. It appears that it’s assuming some data to be there that there is not yet, but it’s hard to debug from that error message.

> but got some rdf-namespaces issues with
> 
> ```auto
> rdf.nil
> dc.created --> for purl
> wf --> for flow 
> 
> ```
> 
> thoose are “undefined” [https://holacracy.solid.community/public/meeting/gouvernance/aeaze/index.ttl](https://holacracy.solid.community/public/meeting/gouvernance/aeaze/index.ttl)

Hmm, rdf-namespaces is automatically generated from the vocabularies published at the given URLs. For each URL you mentioned, there appears to be a different reason it is not included:

# wf.participant

[https://www.w3.org/2005/01/wf/flow#partcipant](https://www.w3.org/2005/01/wf/flow#partcipant) just does not seem to be defined. That means you have two options:

1. Not use it, since it’s technically not part of that vocabulary.
2. Use the URL directly. The values from rdf-namespaces are just URLs, so you could just use `'https://www.w3.org/2005/01/wf/flow#partcipant'` where you’d use `wf.participant` instead.

# dc.created

Could it be that you’d want `dct.created` (so `dct` instead of `dc`) instead? Because [DCMI: DCMI Metadata Terms](http://purl.org/dc/elements/1.1/created) doesn’t point to anything either.

# rdf.nil

This is interesting. This property _is_ defined at [http://www.w3.org/1999/02/22-rdf-syntax-ns#nil](http://www.w3.org/1999/02/22-rdf-syntax-ns#nil), but it’s defined as being an `rdf:List` rather than an `rdfs:Class` or `rdf:Property`, for instance, which is why rdf-namespaces doesn’t include it - because it’s not technically a type, but a value (specifically, an -the- empty list). As a workaround, here too you can use the full URL (`'http://www.w3.org/1999/02/22-rdf-syntax-ns#nil'`) instead of `rdf.nil`.

Which reminds me: the earlier code snipped I posted probably also needs:

```auto
  toolList.setRef(rdf.type, rdf.List);

```

(I’ve updated it now.)

---

_[View the full topic](https://forum.solidproject.org/t/collection-with-tripledoc/3071)._
