WD.kt 908 Bytes
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package org.memobase.rdf

import org.apache.jena.rdf.model.Property
import org.apache.jena.rdf.model.Resource
import org.apache.jena.rdf.model.ResourceFactory

object WD {

    val postalAddress = res("Q319608")


    val isil = prop("P791")
    val street = prop("P669")
    val streetNumber = prop("P670")
    val streetAddress = prop("P6375")
    val adminUnit = prop("P131")
    val postalCode = prop("P281")
    val country = prop("P17")
    val website = prop("P856")
    val emailAddress = prop("P968")
    val onlineArchive = prop("P2699")
    val coordinates = prop("P625")
    val image = prop("P18")
    val logo = prop("P154")
    val typeOfInstitution = prop("P31")

    private fun prop(name: String): Property {
        return ResourceFactory.createProperty(NS.wdt, name)
    }

    private fun res(name: String): Resource {
        return ResourceFactory.createResource(NS.wd + name)
    }

}