askomics.libaskomics.integration package

Submodules

askomics.libaskomics.integration.AbstractedEntity module

class askomics.libaskomics.integration.AbstractedEntity.AbstractedEntity(identifier, prefix)

Bases: object

An AbstractedEntity represents the classes of the database. It is defined by an uri and a label.

get_turtle()

return the turtle code describing an AbstractedEntity for the abstraction file generation.

get_uri()

askomics.libaskomics.integration.AbstractedRelation module

class askomics.libaskomics.integration.AbstractedRelation.AbstractedRelation(relation_type, identifier, label, identifier_prefix, rdfs_domain, prefixDomain, rdfs_range, prefixRange)

Bases: object

An AbstractedRelation represents the relations of the database. There are two kinds of relations:

  • ObjectProperty binds an instance of a class with another.
  • DatatypeProperty binds an instance of a class with a string or a numeric value.
In Askomics, an ObjectProperty can be represented as:
  • a node on the display graph (relation_type = entity).
  • an attribute of a node (relation_type = category).

All DatatypeProperty are represented as nodes attributes. Each relation has an uri composed by the database prefix (:), “has_” and an identifier that is the header of the tabulated file being converted. Each relation also has a domain (the class of the source node) and a range (the class of the target). The range is the header of the tabulated file being converted in case of ObjectProperty and a specified class (xsd:string or xsd:numeric) in case of DatatypeProperty.

get_domain()
get_label()
get_range()
get_relation_type()
get_turtle()

return the turtle code describing an AbstractedRelation for the abstraction file generation.

get_uri()

Module contents