a working version for doc, concept, triple and snippets