Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Rebmann committed Jan 8, 2019
2 parents 57af017 + 4572858 commit b60ff4b
Show file tree
Hide file tree
Showing 16 changed files with 5,537 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
dist/
*.js
*.d.ts
*.svg
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tsconfig.json
src
files
.vscode
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.exclude": {
"**/node_modules": true,
}
}
19 changes: 19 additions & 0 deletions .vscode/tasks.json
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
}
}
]
}
22 changes: 22 additions & 0 deletions doc/Browser.plantuml
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.
93 changes: 93 additions & 0 deletions doc/Importer.plantuml
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
20 changes: 20 additions & 0 deletions doc/Parser.plantuml
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
50 changes: 50 additions & 0 deletions doc/Scraper.plantuml
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
Loading

0 comments on commit b60ff4b

Please sign in to comment.