@prefix rdfs: . @prefix rdf: . @prefix db: . db:Map a rdfs:Class ; rdfs:label "RDB Mapping"@en ; rdfs:comment "A map from one (or more) databases to rdf"@en . db:mapsClass a rdf:Property ; rdfs:label "Maps Class"@en ; rdfs:comment "Relates a map to class (which represents a table)"@en ; rdfs:domain db:Map ; rdfs:range rdfs:Class . db:database a rdf:Property ; rdfs:label "Database"@en ; rdfs:comment "Gives the database (a jdbc resource) for a table class"@en ; rdfs:domain rdfs:Class ; rdfs:range db:Database . db:Database a rdfs:Class ; rdfs:label "Database"@en ; rdfs:comment "A Database"@en . db:user a rdf:Property ; rdfs:label "username"@en ; rdfs:comment "Username for connecting to a database"@en ; rdfs:domain db:Database . db:pass a rdf:Property ; rdfs:label "password"@en ; rdfs:comment "Password for connecting to a database"@en ; rdfs:domain rdfs:Class . db:table a rdf:Property ; rdfs:label "table"@en ; rdfs:comment "Links a class to the database table"@en ; rdfs:domain db:Table . db:col a rdf:Property ; rdfs:label "column"@en ; rdfs:comment "links a property to a database column"@en ; rdfs:domain rdf:Property . db:colType a rdf:Property ; rdfs:label "column type"@en ; rdfs:comment "gives the db type of a column (probably not useful)"@en ; rdfs:domain rdf:Property . db:primaryKey a rdf:Property ; rdfs:label "primary key"@en ; rdfs:comment "The primary key of this class"@en ; rdfs:domain rdfs:Class ; rdfs:range rdf:Property . db:foreignKey a rdf:Property ; rdfs:label "foreign key"@en ; rdfs:comment "for foreign keys, gives the property (and thus column and table) referenced."@en ; rdfs:domain rdf:Property ; rdfs:range rdf:Property . db:driver a rdf:Property ; rdfs:label "driver"@en ; rdfs:comment "The driver to use for the database"@en ; rdfs:domain db:Database . # For foreign keys db:maps a rdf:Property ; rdfs:label "foreign key mapping"@en ; rdfs:comment "This property represents a foreign key relationship"@en ; rdfs:domain rdf:Property ; rdfs:range db:KeyMap . db:KeyMap a rdfs:Class ; . db:from a rdf:Property ; . db:to a rdf:Property ; .