Skip to content

Commit

Permalink
fix(CitationTypeEnumeration): Excludes members that are related to ci…
Browse files Browse the repository at this point in the history
…tation distance
  • Loading branch information
nokome committed Apr 15, 2021
1 parent a524c92 commit dbfcd12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 35 deletions.
32 changes: 0 additions & 32 deletions schema/CitationTypeEnumeration.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,10 @@ description: The type or nature of a citation, both factually and rhetorically.
$comment: |
The members of this enumeration map directly on to the types in the [Citation Typing Ontology (CiTO)](http://www.sparontologies.net/ontologies/cito).
anyOf:
- const: AffilationSelfCitation
'@id': cito:AffilationSelfCitation
description: A citation in which at least one author from each of the citing and the cited entities is affiliated with the same academic institution

- const: AgreesWith
'@id': cito:agreesWith
description: The citing entity agrees with statements, ideas or conclusions presented in the cited entity

- const: AuthorNetworkSelfCitation
'@id': cito:AuthorNetworkSelfCitation
description: A citation in which at least one author of the citing entity has direct or indirect co-authorship links with one of the authors of the cited entity

- const: AuthorSelfCitation
'@id': cito:AuthorSelfCitation
description: A citation in which the citing and the cited entities have at least one author in common

- const: CitesAsAuthority
'@id': cito:citesAsAuthority
description: The citing entity cites the cited entity as one that provides an authoritative description or definition of the subject under discussion
Expand Down Expand Up @@ -104,10 +92,6 @@ anyOf:
'@id': cito:disputes
description: The citing entity disputes statements, ideas or conclusions presented in the cited entity

- const: DistantCitation
'@id': cito:DistantCitation
description: A citation in which the citing and the cited entities have nothing significant in common with one another (for example authors, journal, institutional affiliation, or funding agency) over and beyond their subject matter

- const: Documents
'@id': cito:documents
description: The citing entity documents information about the cited entity
Expand All @@ -116,10 +100,6 @@ anyOf:
'@id': cito:extends
description: The citing entity extends facts, ideas or understandings presented in the cited entity

- const: FunderSelfCitation
'@id': cito:FunderSelfCitation
description: A citation in which the works reported in the citing and the cited entities were funded by the same funding agency

- const: GivesBackgroundTo
'@id': cito:givesBackgroundTo
description: The cited entity provides background information for the citing entity
Expand Down Expand Up @@ -276,14 +256,6 @@ anyOf:
'@id': cito:isUpdatedBy
description: The cited entity presents statements, ideas, hypotheses or understanding that are updated by the cited entity

- const: JournalCartelCitation
'@id': cito:JournalCartelCitation
description: A citation from one journal to another journal which forms one of a very large number of citations from the citing journal to recent articles in the cited journal, possibly undertaken as part of a citation cartel for the purpose of gaming the impact factor of the cited journal

- const: JournalSelfCitation
'@id': cito:JournalSelfCitation
description: A citation in which the citing and the cited entities are published in the same journal

- const: Likes
'@id': cito:likes
description: A property that permits you to express appreciation of or interest in something that is the object of the RDF triple, or to express that it is worth thinking about even if you do not agree with its content, enabling social media 'likes' statements to be encoded in RDF
Expand Down Expand Up @@ -356,10 +328,6 @@ anyOf:
'@id': cito:ridicules
description: The citing entity ridicules the cited entity or aspects of its contents

- const: SelfCitation
'@id': cito:SelfCitation
description: A citation in which the citing and the cited entities have something significant in common with one another, over and beyond their subject matter, for example authors, journal, institutional affiliation, or funding agency

- const: SharesAuthorInstitutionWith
'@id': cito:sharesAuthorInstitutionWith
description: Each entity has at least one author that shares a common institutional affiliation with an author of the other entity
Expand Down
10 changes: 7 additions & 3 deletions ts/imports/cito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
* Excludes `hasCitationCharacterization`, `hasCitationTimeSpan`, etc since these describe properties
* of a citation other than it's type.
*
* Excludes `*Citation` and `Shares*` since these are related to citation "distance", not citation
* intent. See https://github.com/stencila/schema/pull/260#pullrequestreview-636331806.
*
* Run using `npx ts-node ts/imports/cito.ts`.
*/

Expand Down Expand Up @@ -50,7 +53,9 @@ import { pascalCase, sentenceCase } from 'change-case'
'hasCitingEntity',
'hasCoAuthorshipCitationLevel',
'Likes',
].includes(id)
].includes(id) ||
id.startsWith('Shares') ||
id.endsWith('Citation')
)
return prev

Expand Down Expand Up @@ -95,7 +100,6 @@ extends: Enumeration
description: The type or nature of a citation, both factually and rhetorically.
$comment: |
The members of this enumeration map directly on to the types in the [Citation Typing Ontology (CiTO)](http://www.sparontologies.net/ontologies/cito).
anyOf:${yaml}
`
anyOf:${yaml}`
)
})()

0 comments on commit dbfcd12

Please sign in to comment.