refactor: remodel entities for library search and results

This commit is contained in:
Rainer Killinger
2021-08-12 12:41:03 +00:00
committed by Jovan Krunić
parent 4ab8770fbc
commit 2dfb64bafd
26 changed files with 791 additions and 105 deletions

View File

@@ -6,7 +6,7 @@
"categories": [
"unipedia"
],
"url": "https://www.mydesk.tu-berlin.de/wiki/abk%C3%BCrzungen",
"sameAs": "https://www.mydesk.tu-berlin.de/wiki/abk%C3%BCrzungen",
"name": "Abkürzungen",
"keywords": [
"Abkürzungen",

View File

@@ -6,7 +6,7 @@
"categories": [
"unipedia"
],
"url": "https://www.mydesk.tu-berlin.de/wiki/ag_ziethen",
"sameAs": "https://www.mydesk.tu-berlin.de/wiki/ag_ziethen",
"name": "AG Ziethen",
"keywords": [
"Bologna",

View File

@@ -0,0 +1,36 @@
{
"errorNames": [],
"instance": {
"type": "article",
"uid": "d541eda5-1542-59b2-969e-7dbbee0bd2a8",
"name": "Mozart und Frankfurt am Main : drei Generationen Mozart in Frankfurt am Main",
"description": "Ill.",
"categories": [
"article"
],
"authors": [
{
"type": "person",
"uid": "56d46c9b-8ede-52ae-a40f-6800cff577e5",
"name": "Greve, Clemens"
}
],
"firstPublished": "2008",
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB198305427",
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB198305427",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
},
"isPartOf": {
"uid": "bc5e5399-a24c-5c01-9c1b-0c8b83272087",
"name": "Archiv für Frankfurts Geschichte und Kunst",
"type": "periodical",
"categories": []
},
"reference": "Band 71 (2008), Seite 27-40"
},
"schema": "SCArticle"
}

View File

@@ -0,0 +1,36 @@
{
"errorNames": [],
"instance": {
"type": "article",
"uid": "554a4a89-df73-5197-ac85-c8a5a3a9c5b0",
"name": "Ursula Janik : [Markthändlerin]",
"description": "Ill.",
"categories": [
"article"
],
"authors": [
{
"type": "person",
"uid": "c6e44e1f-f76c-53f8-a18f-47fa54ae0e90",
"name": "Fröhlich, Ute B."
}
],
"firstPublished": "2002",
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB107025590",
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB107025590",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
},
"isPartOf": {
"uid": "f84c1851-042e-542f-ba7a-158b32dfb82f",
"name": "Frankfurter Allgemeine. R, Rhein-Main-Zeitung",
"type": "periodical",
"categories": []
},
"reference": "Heft 190 (17. 8 2002), Seite 62"
},
"schema": "SCArticle"
}

View File

@@ -22,9 +22,14 @@
}
],
"inLanguage": "de",
"bookEdition": "2., überarb. u. erw. Aufl.",
"isbn": "3936608776",
"edition": "2., überarb. u. erw. Aufl.",
"ISBNs": [
"3936608776"
],
"numberOfPages": 537,
"categories": [
"book"
],
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "Dummy",

View File

@@ -4,6 +4,9 @@
"type": "book",
"uid": "db47f7f4-7699-5a37-afcc-24beaa998d36",
"name": "Minimal Book",
"categories": [
"ebook"
],
"authors": [
{
"type": "person",
@@ -14,7 +17,9 @@
}
],
"datePublished": "2007-08-01",
"isbn": "3936608776",
"ISBNs": [
"3936608776"
],
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "Dummy",

View File

@@ -0,0 +1,40 @@
{
"errorNames": [],
"instance": {
"type": "book",
"uid": "188cb2bd-724d-543d-97ac-9aa1dda68cb7",
"name": "Frauen im Ingenieurberuf : FIB ; 1. Gesamtdeutsches Symposium VDI-FIB 17. - 18. November 1990, Bad Homburg ; 1. überregionales Treffen VDI-FIB 11. - 12. November 1989, Düsseldorf",
"description": "47 S. : Ill., Kt.",
"categories": [
"book"
],
"authors": [
{
"uid": "a276588c-ecee-5d2e-8b9c-73cb902bc165",
"name": "Saatweber, Jutta (Hrsg.)",
"type": "person"
}
],
"firstPublished": "[ca. 1991]",
"publications": [
{
"uid": "603a6574-8910-588a-9e83-cd26e6988c74",
"type": "publication event",
"locations": [
"Frankfurt/M"
],
"publisher": "VDI",
"name": "VDI"
}
],
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB022992618",
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB022992618",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
}
},
"schema": "SCBook"
}

View File

@@ -0,0 +1,43 @@
{
"errorNames": [],
"instance": {
"type": "book",
"uid": "f6ee5744-a441-595d-9dae-a9f579c0660f",
"name": "Kant",
"description": "176 S.",
"categories": [
"book"
],
"authors": [
{
"uid": "7e198ecf-966a-5f99-8a45-266243583023",
"name": "Thouard, Denis",
"type": "person"
}
],
"firstPublished": "2001",
"publications": [
{
"uid": "603a6574-8910-588a-9e83-cd26e6988c74",
"type": "publication event",
"locations": [
"Paris"
],
"publisher": "Belles Lettres",
"name": "Belles Lettres"
}
],
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB102248788",
"ISBNs": [
"2251760385"
],
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB102248788",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
}
},
"schema": "SCBook"
}

View File

@@ -21,6 +21,9 @@
"audiences": [
"students"
],
"categories": [
"news"
],
"sequenceIndex": 1010,
"origin": {
"indexed": "2018-09-11T12:30:00Z",

View File

@@ -21,6 +21,9 @@
"audiences": [
"students"
],
"categories": [
"news"
],
"sequenceIndex": 1020,
"origin": {
"indexed": "2018-09-11T12:30:00Z",

View File

@@ -9,6 +9,9 @@
"audiences": [
"students"
],
"categories": [
"news"
],
"sequenceIndex": 1001,
"origin": {
"indexed": "2018-09-11T12:30:00Z",

View File

@@ -11,6 +11,9 @@
"audiences": [
"students"
],
"categories": [
"news"
],
"sequenceIndex": 1004,
"origin": {
"indexed": "2018-09-11T12:30:00Z",

View File

@@ -0,0 +1,35 @@
{
"errorNames": [],
"instance": {
"type": "periodical",
"uid": "d921479e-4d35-5cd1-b64a-939cbe40a5b0",
"name": "London magazine : a review of literature and the arts",
"categories": [
"journal"
],
"firstPublished": "1954",
"publications": [
{
"uid": "603a6574-8910-588a-9e83-cd26e6988c74",
"type": "publication event",
"locations": [
"London"
],
"publisher": "London Magazine",
"name": "London Magazine"
}
],
"ISSNs": [
"0024-6085"
],
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB046847146",
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB046847146",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
}
},
"schema": "SCPeriodical"
}

View File

@@ -0,0 +1,32 @@
{
"errorNames": [],
"instance": {
"type": "periodical",
"uid": "c8d7a4f7-88ac-5da3-86c7-32b93d16f00a",
"name": "[Frankfurter Allgemeine \/ R F A Z FAZ Republik Heroes], Frankfurter Allgemeine : Zeitung für Deutschland, R. Rhein-Main-Zeitung : Zeitung für Frankfurt",
"categories": [
"journal"
],
"firstPublished": "1988",
"publications": [
{
"uid": "64829217-9eea-532f-8730-7e609efffbca",
"type": "publication event",
"locations": [
"Frankfurt, M."
],
"publisher": "Frankfurter Allg. Zeitung",
"name": "Frankfurter Allg. Zeitung"
}
],
"sameAs": "https://hds2test.hebis.de/ubffm/Record/HEB048624853",
"origin": {
"indexed": "2018-09-11T12:30:00Z",
"name": "HeBIS HDS",
"originalId": "HEB048624853",
"type": "remote",
"url": "https://hds2test.hebis.de/ubffm/"
}
},
"schema": "SCPeriodical"
}

View File

@@ -3,7 +3,7 @@
"instance": {
"type": "video",
"uid": "e274cc82-f51c-566b-b8da-85763ff375e8",
"url": "https://vimeo.com/1084537",
"sameAs": "https://vimeo.com/1084537",
"name": "Big Buck Bunny",
"origin": {
"indexed": "2018-09-11T12:30:00Z",

View File

@@ -3,7 +3,7 @@
"instance": {
"type": "video",
"uid": "2def52c8-f901-5b30-96fc-ba570a038508",
"url": "https://vimeo.com/1084537",
"sameAs": "https://vimeo.com/1084537",
"name": "Big Buck Bunny",
"sources": [
{

View File

@@ -39,6 +39,8 @@ import {SCTicket, SCTicketWithoutReferences} from '../src/things/ticket';
import {SCToDo, SCToDoWithoutReferences} from '../src/things/todo';
import {SCTour, SCTourWithoutReferences} from '../src/things/tour';
import {SCVideo, SCVideoWithoutReferences} from '../src/things/video';
import {SCPeriodical, SCPeriodicalWithoutReferences} from '../src/things/periodical';
import {SCPublicationEvent, SCPublicationEventWithoutReferences} from '../src/things/publication-event';
// tslint:disable:no-any
// tslint:disable:completed-docs
@@ -226,6 +228,17 @@ assert<Has<SCOrganizationPropertyTypes, SCThing>>(false);
assert<Extends<SCOrganizationWithoutReferences, SCThing>>(false);
assert<Extends<SCOrganization, SCThing>>(true);
/**
* Types of properties of SCPeriodical
*/
type SCPeriodicalPropertyTypes = PropertyTypesNested<SCPeriodical>;
assert<NotHas<SCPeriodicalPropertyTypes, SCThingWithoutReferences>>(false);
assert<Has<SCPeriodicalPropertyTypes, SCThingWithoutReferences>>(true);
assert<NotHas<SCPeriodicalPropertyTypes, SCThing>>(true);
assert<Has<SCPeriodicalPropertyTypes, SCThing>>(false);
assert<Extends<SCPeriodicalWithoutReferences, SCThing>>(false);
assert<Extends<SCPeriodical, SCThing>>(true);
/**
* Types of properties of SCPerson
*/
@@ -248,6 +261,17 @@ assert<Has<SCPointOfInterestPropertyTypes, SCThing>>(false);
assert<Extends<SCPointOfInterestWithoutReferences, SCThing>>(false);
assert<Extends<SCPointOfInterest, SCThing>>(true);
/**
* Types of properties of SCPublicationEvent
*/
type SCPublicationEventPropertyTypes = PropertyTypesNested<SCPublicationEvent>;
assert<NotHas<SCPublicationEventPropertyTypes, SCThingWithoutReferences>>(false);
assert<Has<SCPublicationEventPropertyTypes, SCThingWithoutReferences>>(true);
assert<NotHas<SCPublicationEventPropertyTypes, SCThing>>(true);
assert<Has<SCPublicationEventPropertyTypes, SCThing>>(false);
assert<Extends<SCPublicationEventWithoutReferences, SCThing>>(false);
assert<Extends<SCPublicationEvent, SCThing>>(true);
/**
* Types of properties of SCRoom
*/