-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
5,537 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules/ | ||
dist/ | ||
*.js | ||
*.d.ts | ||
*.svg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tsconfig.json | ||
src | ||
files | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"files.exclude": { | ||
"**/node_modules": true, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "typescript", | ||
"tsconfig": "tsconfig.json", | ||
"option": "watch", | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@startuml Browser | ||
package Browser { | ||
note top of IBrowser | ||
Navigiert in einer Struktur und liefert die gewünschten IFile-Fragmente. | ||
end note | ||
|
||
interface IBrowser<T extends IFile> { | ||
void load(uri: URI) | ||
boolean hasNext() | ||
T next() | ||
} | ||
|
||
class DipBrowser<Html> { | ||
} | ||
|
||
class PlenarProtocolBrowser<Xml> { | ||
} | ||
|
||
IBrowser <|-- DipBrowser | ||
IBrowser <|-- PlenarProtocolBrowser | ||
} | ||
@enduml |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
@startuml Importer | ||
package Importer { | ||
package Parser { | ||
note top of IParser | ||
Extrahiert die gewünschten Daten aus dem gegebenen IFile. | ||
end note | ||
|
||
interface IParser<T extends IFile> { | ||
JSON parse(content: T) | ||
} | ||
|
||
class DipProcedureDataParser<Html> { | ||
} | ||
|
||
class PlenarProtocolSpeechesParser<Xml> { | ||
} | ||
|
||
IParser <|-- DipProcedureDataParser | ||
IParser <|-- PlenarProtocolSpeechesParser | ||
} | ||
|
||
package Browser { | ||
note top of IBrowser | ||
Navigiert in einer Struktur und liefert die gewünschten IFile-Fragmente. | ||
end note | ||
|
||
interface IBrowser<T extends IFile> { | ||
void load(uri: URI) | ||
boolean hasNext() | ||
T next() | ||
} | ||
|
||
class DipBrowser<Html> { | ||
} | ||
|
||
class PlenarProtocolBrowser<Xml> { | ||
} | ||
|
||
IBrowser <|-- DipBrowser | ||
IBrowser <|-- PlenarProtocolBrowser | ||
} | ||
|
||
package Scraper { | ||
note top of IScraper | ||
Sammelt die Daten aus verschiedenen Quellen zusammen. | ||
end note | ||
|
||
interface IScraper { | ||
+ JSON[]: scrape(configs: ScraperConfiguration[]) | ||
} | ||
|
||
interface IScraperConfiguration<T extends IFile> { | ||
URI getUri() | ||
IBrowser<T> getBrowser() | ||
IParser<T> getParser() | ||
} | ||
|
||
IScraper "1" -> "*" IScraperConfiguration | ||
|
||
class DipProcedureScraperConfiguration<Html> { | ||
IBrowser<Html> getBrowser() | ||
IParser<Html> getParser() | ||
} | ||
|
||
class PlenarProtocolSpeechScraperConfiguration<Xml> { | ||
IBrowser<Xml> getBrowser() | ||
IParser<Xml> getParser() | ||
} | ||
|
||
IScraperConfiguration <|-- DipProcedureScraperConfiguration | ||
IScraperConfiguration <|-- PlenarProtocolSpeechScraperConfiguration | ||
|
||
interface IFile { | ||
} | ||
|
||
class Html { | ||
} | ||
|
||
class Xml { | ||
} | ||
|
||
'class Pdf { | ||
'} | ||
|
||
Html --|> IFile | ||
Xml --|> IFile | ||
'Pdf --|> IFile | ||
|
||
IScraperConfiguration *- IFile | ||
} | ||
} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@startuml Parser | ||
package Parser { | ||
note top of IParser | ||
Extrahiert die gewünschten Daten aus dem gegebenen IFile. | ||
end note | ||
|
||
interface IParser<T extends IFile> { | ||
JSON parse(content: T) | ||
} | ||
|
||
class DipProcedureDataParser<Html> { | ||
} | ||
|
||
class PlenarProtocolSpeechesParser<Xml> { | ||
} | ||
|
||
IParser <|-- DipProcedureDataParser | ||
IParser <|-- PlenarProtocolSpeechesParser | ||
} | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@startuml Scraper | ||
package Scraper { | ||
note top of IScraper | ||
Sammelt die Daten aus verschiedenen Quellen zusammen. | ||
end note | ||
|
||
interface IScraper { | ||
+ JSON[]: scrape(configs: ScraperConfiguration[]) | ||
} | ||
|
||
interface IScraperConfiguration<T extends IDataFormat> { | ||
URI getUri() | ||
IBrowser<T> getBrowser() | ||
IParser<T> getParser() | ||
} | ||
|
||
IScraper "1" -> "*" IScraperConfiguration | ||
|
||
class DipProcedureScraperConfiguration<Html> { | ||
IBrowser<Html> getBrowser() | ||
IParser<Html> getParser() | ||
} | ||
|
||
class PlenarProtocolSpeechScraperConfiguration<Xml> { | ||
IBrowser<Xml> getBrowser() | ||
IParser<Xml> getParser() | ||
} | ||
|
||
IScraperConfiguration <|-- DipProcedureScraperConfiguration | ||
IScraperConfiguration <|-- PlenarProtocolSpeechScraperConfiguration | ||
|
||
interface IDataFormat { | ||
} | ||
|
||
class Html { | ||
} | ||
|
||
class Xml { | ||
} | ||
|
||
'class Pdf { | ||
'} | ||
|
||
Html --|> IDataFormat | ||
Xml --|> IDataFormat | ||
'Pdf --|> IDataFormat | ||
|
||
IScraperConfiguration *- IDataFormat | ||
} | ||
@enduml |
Oops, something went wrong.