Closed adamnagel closed 11 years ago
ok
On Mon, Sep 9, 2013 at 10:17 AM, Adam Nagel notifications@github.comwrote:
Implement these functions using Python:
GetQuantityKind( UnitURI ) Return the URI of the QuantityKind of UnitURI
GetUnitsWithQuantityKind( QuantityKindURI ) Return a list of URI of Units that have that QuantityKind
GetCompatibleUnits( UnitURI ) Return a list of URI of Units that have the same QuantityKind as UnitURI
— Reply to this email directly or view it on GitHubhttps://github.com/adamnagel/qudt-for-domain-tools/issues/8 .
done
To work on this issue, create a new Git Branch called "issue-8". Then create a new Python file, and implement the functions below.
_testqueries.py has good examples. Each of the functions below will perform a query against the jena-fuseki database. It is okay if the URLs to the database are global constants, like you see in _testqueries.py.
Functions
GetUnitClass( Unit URI ) For URI of individual Unit, find the Unit Class URI, and return it.
GetUnitsWithUnitClass( UnitClassURI ) Find a list of URI of individual Units that have this Unit Class, and return it.
GetCompatibleUnits( Unit URI ) Find a list of URI of individual Units that have the same Unit Class as UnitURI, and return it.