tutorial:poly_db_querying

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:poly_db_querying [2017/08/07 12:35] paffenholztutorial:poly_db_querying [2017/08/09 09:46] paffenholz
Line 82: Line 82:
        print $p->N_LATTICE_POINTS;        print $p->N_LATTICE_POINTS;
                
-=== Obtain Information about available Databases and Collections ===+=== Obtain Information about Searchable Fields in a Collection ===
  
-You can obtain information on the databases and collections in the database using the ''db_info'' command+You can list all searchable entries of a collection with the command ''db_print_searchable_fields'' that takes the name of a database and a collection inside this database
 <code> <code>
-polytope> db_info(); +db_print_searchable_fields(db=>"LatticePolytopes",collection=>"SmoothReflexive");
-DATABASE: LatticePolytopes +
-This database contains various classes of lattice polytopes.+
  
-Collection: SmoothReflexive +Entries for smooth reflexive polytopes in dimensions to 
-A complete collection of smooth reflexive lattice polytopes in dimensions up to 9up to lattice equivalence. The lists were computed with the algorithm of  +---------------------------- 
-Mikkel Oebro (see [[http://arxiv.org/abs/0704.0049|arxiv: 0704.0049]]) and are taken from the [[http://polymake.org/polytopes/paffenholz/www/fano.html|website  +AFFINE_HULL  [denseint] 
-of Andreas Paffenholz]].+CENTROID 
 +CONE_AMBIENT_DIM  [int] 
 +CONE_DIM  [int] 
 +EHRHART_POLYNOMIAL_COEFF 
 +FACETS  [dense, int] 
 +FACET_WIDTHS  [int] 
 +FULL_DIM  [int] 
 +F_VECTOR  [int] 
 +GORENSTEIN  [int] 
 +H_STAR_VECTOR  [int] 
 +[...]
  
-In dimensions up to 7 the database contains the properties: +Entries for smooth reflexive polytopes in dimension 8 
-H_STAR_VECTOR, REFLEXIVE, DIM, LATTICE_CODEGREE, N_INTERIOR_LATTICE_POINTS, SMOOTH, N_LATTICE_POINTS, FACET_WIDTHS, VERTICES, FACETS, CENTROID, N_VERTICES,  +---------------------------- 
-contributor, LATTICE_DEGREE, LATTICE_VOLUME, EHRHART_POLYNOMIAL_COEFF, N_BOUNDARY_LATTICE_POINTS, ESSENTIALLY_GENERIC, VERY_AMPLE, F_VECTOR, GORENSTEIN,  +AFFINE_HULL  [dense, int] 
-FEASIBLE, LINEALITY_SPACE, AFFINE_HULL. +[...]
- +
-In dimension 8 the lattice points are not stored, and in dimension 9 also NORMAL is not computed +
- +
-__________________ +
- +
-DATABASE: Manifolds +
-This database contains combinatorial manifolds +
- +
-Collection: DIM2_3 +
-This is a collection of  combinatorial 2 and  3-manifolds with up to 10 vertices given as triangulations and calculcated by Frank Lutz found at:  +
-http://page.math.tu-berlin.de/~lutz/stellar/mixed.html+
  
 +Entries for smooth reflexive polytopes in dimension 9
 +----------------------------
 +AFFINE_HULL  [dense, int]
 [...] [...]
 </code> </code>
-The command takes the options ''db'' to list only collections in a particular database, ''collection'' to list only one collection (in this case ''db'' must also be given), and ''username'', if you have access to some collections not (yet) publicly available.  
  
-=== Obtain Information about Searchable Fields in a Collection ===+There may be more than one list of searchable properties, e.g. if some properties cannot be stored or computed for some objects. Observe the header line of the list of properties to see which list applies to the objects you are looking for. The above lists apply to smooth reflexive polytopes in dimensions 1 to 7, in dimension 8 and in dimension 9. If property appears in more than one list any search for this property will be executed on all objects that belong to one of the lists. 
                
 === Type Information === === Type Information ===
Line 124: Line 123:
    $t = db_get_type_information(db=>"LatticePolytopes", collection=>"SmoothReflexive", type_information_key=>'fano');    $t = db_get_type_information(db=>"LatticePolytopes", collection=>"SmoothReflexive", type_information_key=>'fano');
        
-For the format of such a typer information entry in the database see [[devel/polydb/format|here]].+For the format of such a type information entry in the database see [[devel/polydb/format|here]].