コード例 #1
0
ファイル: PatternGroup.cs プロジェクト: Titan512/spiralrdf
 public PatternGroup()
 {
     itsPatterns                  = new ArrayList();
     itsAlternateGroups           = new ArrayList();
     itsConstraints               = new ArrayList();
     itsQueryPartAlternate        = new QueryGroupOr();
     itsQueryPartPatterns         = new QueryGroupPatterns();
     itsQueryPartOptionalPatterns = new QueryGroupPatterns();
     itsQueryPartOptional         = new QueryGroupOptional(itsQueryPartOptionalPatterns);
     itsQueryPartConstraints      = new QueryGroupConstraints(  );
 }
コード例 #2
0
        public QueryGroup Resolve(ResourceMap map)
        {
            QueryGroup resolved;

            try {
                resolved = new QueryGroupOptional(itsGroup.Resolve(map));
            }
            catch (UnknownGraphMemberException) {
                resolved = new QueryGroupOptional(new QueryGroupPatterns());
            }

            return(resolved);
        }