Closed atiro closed 3 years ago
Hey @atiro,
I've modified your minimal example a bit and the below seems to work:
dct:title
as title for the concept scheme.@base <https://data.vam.ac.uk/CIT/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
<CIT284490> a skos:ConceptScheme ;
dct:description "This is the Project"@en ;
dct:title "Project Title"@en ;
skos:hasTopConcept <CIT286960>, <CIT286961> .
<CIT286960> a skos:Concept ;
dct:source "A Source"@en ;
skos:altLabel "An Alt Label"@en ;
skos:prefLabel "Term Label"@en ;
skos:scopeNote "Scope Notes"@en ;
skos:topConceptOf <CIT284490> .
<CIT286961> a skos:Concept ;
dct:source "A Source"@en ;
skos:altLabel "An Alt Label"@en ;
skos:prefLabel "Term Label"@en ;
skos:scopeNote "Scope Notes"@en ;
skos:topConceptOf <CIT284490> .
Thanks for the quick reply @sroertgen . I did have the prefixes but not the base, added now.
Switching to dct:title & dct:description fixed the missing title (needed lang tag as well), many thanks,
Still not getting pages per term though, maybe I need to have a skos:definition for this? I also get the warning from Gatsby (which I assume is related to skos:related field) :
warn There are conflicting field types in your data.
If you have explicitly defined a type for those fields, you can safely ignore this warning
message.
Otherwise, Gatsby will omit those fields from the GraphQL schema.
If you know all field types in advance, the best strategy is to explicitly define them with the
Concept.related:
- type: [object]
value: [ { id: 'https://data.vam.ac.uk/CIT/CIT280647' }, ... ]
- type: object
value: { id: 'https://data.vam.ac.uk/CIT/CIT284281' }
You might take a look at https://github.com/dini-ag-kim/hcrt/blob/master/hcrt.ttl as reference vocab. With regard to skos:related
I think we do not support it yet. I opened #105 for this. Perhaps it's time to start working on #91...
Still not getting pages per term though, maybe I need to have a skos:definition for this?
Using the exact version @sroertgen provided in https://github.com/skohub-io/skohub-vocabs/issues/103#issuecomment-720520285, the vocab builds fine for me. The snippet provided in https://github.com/skohub-io/skohub-vocabs/issues/103#issue-734073777 won't build a page for each Concept
because only CIT286960
is explicitly defined. @atiro could you perhaps provide the entire vocab you are trying to build?
Many thanks all, that's working now. I was over complicating things for myself by generating all the labels in both English and Chinese, have reduced it down for the moment.
I'll check if it's OK to put the vocab up @literarymachine and send the link if so.
Hey @atiro, I will close this for now due to inactivity. Please reopen this issue, if you need any more help!
Discovered project via signing up for SWIB20, so forgive me if am jumping ahead, but generating the static site is exactly what we need for a project. I've sort of got it working (tree looks amazing) but I'm obviously failing to get it in quite the right format/sematics. As a sample I have:
But for some reason the Title isn't picked up, and pages aren't generated (just the navigation tree).
I would also like the ability to navigate the tree in more than one language ideally, but that's probably a feature request!