Skip to content

Commit

Permalink
Add new source ontology terms to frontend/src/common-rdf/ns (#444, #37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Sep 7, 2022
1 parent 2a5a8b2 commit 8883a0b
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions frontend/src/common-rdf/ns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ export const schemaTerms = [
'accessibilityFeature',
'affiliation',
'alternativeHeadline',
'Article',
'Audience',
'audience',
'author',
Expand All @@ -500,7 +501,10 @@ export const schemaTerms = [
// 'name', // causes runtime error, use schema('name') instead
'Organization',
'Person',
'text'
'Review',
'SocialMediaPosting',
'text',
'WebContent',
] as const;

export const schema = Vocabulary(schemaPrefix, schemaTerms);
Expand Down Expand Up @@ -574,7 +578,32 @@ export const nlp = Vocabulary(nlpOntologyPrefix, ontologyNotHardcoded);

export const sourceOntologyPrefix = READIT + 'source-ontology#';

export const sourceOntology = Vocabulary(sourceOntologyPrefix, ontologyNotHardcoded);
const sourceOntologyTerms = [
'author',
'content',
'dateCreated',
'datePublished',
'dateRetrieved',
'dateUploaded',
'editor',
'encodingFormat',
'fullText',
'image',
'language',
'PlainTextSource',
'public',
'publisher',
'ReaditSourceType',
'repository',
'Source',
'sourceType',
'TFO_TextForm',
'thumbnail',
'title',
'url',
] as const;

export const sourceOntology = Vocabulary(sourceOntologyPrefix, sourceOntologyTerms);

/**
* READ-IT items
Expand Down

0 comments on commit 8883a0b

Please sign in to comment.