FAQ Database Discussion Community


NHibernate Criteria Where any element of list property is true

c#,nhibernate,hql,criteria,restrictions
I have an already created NHibernate Criteria query that I need to modified so I can add a new condition. The query is based on the Order object, which has a list of OrderItems and then, every OrderItem has a bool property named FinalDeliveryIndicator. In my Criteria query I need...

Couchbase Sync Function: How to detect the current access type?

rest,crud,restrictions,couchbase-sync-gateway
I am using Couchbase's Sync Gateway and want to restrict the access to the documents. Furthermore, the individual restriction for each document should take into account what is currently happening: The document is just being read or it is either being created or changed in some way. To this end,...

Trying to use MySQL fields as a restriction for data

php,mysql,login,dreamweaver,restrictions
I'll try to make this as concise as possible, but any help is greatly appreciated. My skill level is slightly above minimal in PHP/MySQL so I'm using Dreamweaver CS6 to try to get my site up and running. I need to be able to restrict data returned from the database...

Cardinality restrictions on SPARQL

rdf,sparql,restrictions,rdfs,cardinality
My question is about SPARQL query language of RDF triples, suppose we have a family ontology written in RDF/XML format. Now, I want to query all parents, for example, with at least two children (cardinality on hasChild relation) with SPARQL. My question is, is it possible to write this query...

Reasoner does not check cardinalities and/or restrictions?

semantic-web,owl,restrictions
I tried to create the perhaps simplest ontology, consisting of two classes (A, B) and a relation (R) between the two classes. I also want to state that every individual of A must have a relation R with some other individual. :R rdf:type owl:ObjectProperty ; rdfs:domain :A ; rdfs:range :B...