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/03 22:17] 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 ===
  
-=== Obtain Information about Saearchable Fields in a Collection ===+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> 
 +db_print_searchable_fields(db=>"LatticePolytopes",collection=>"SmoothReflexive"); 
 + 
 +Entries for smooth reflexive polytopes in dimensions 1 to 7 
 +---------------------------- 
 +AFFINE_HULL  [dense, int] 
 +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] 
 +[...] 
 + 
 +Entries for smooth reflexive polytopes in dimension 8 
 +---------------------------- 
 +AFFINE_HULL  [dense, int] 
 +[...] 
 + 
 +Entries for smooth reflexive polytopes in dimension 9 
 +---------------------------- 
 +AFFINE_HULL  [dense, int] 
 +[...] 
 +</code> 
 + 
 +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 93: 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]].