Esempio n. 1
0
        public override IEnumerable <Triple> WithObject(INode obj)
        {
            dotSesame.Value v = SesameConverter.ToSesameValue(obj, this._mapping);
            JavaIteratorWrapper <dotSesame.Statement> stmtIter = new JavaIteratorWrapper <org.openrdf.model.Statement>(this._g.match(null, null, v, null));

            return(stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping)));
        }
Esempio n. 2
0
        public override IEnumerable <Triple> WithPredicate(INode pred)
        {
            dotSesame.URI u = SesameConverter.ToSesameUri(pred, this._mapping);
            JavaIteratorWrapper <dotSesame.Statement> stmtIter = new JavaIteratorWrapper <org.openrdf.model.Statement>(this._g.match(null, u, null, null));

            return(stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping)));
        }
 public override IEnumerable<Triple> WithObject(INode obj)
 {
     dotSesame.Value v = SesameConverter.ToSesameValue(obj, this._mapping);
     JavaIteratorWrapper<dotSesame.Statement> stmtIter = new JavaIteratorWrapper<org.openrdf.model.Statement>(this._g.match(null, null, v, null));
     return stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping));
 }
 public override IEnumerator<Triple> GetEnumerator()
 {
     JavaIteratorWrapper<dotSesame.Statement> stmtIter = new JavaIteratorWrapper<org.openrdf.model.Statement>(this._g.iterator());
     return stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping)).GetEnumerator();
 }
 public override IEnumerable<Triple> WithSubjectPredicate(INode subj, INode pred)
 {
     dotSesame.Resource r = SesameConverter.ToSesameResource(subj, this._mapping);
     dotSesame.URI u = SesameConverter.ToSesameUri(pred, this._mapping);
     JavaIteratorWrapper<dotSesame.Statement> stmtIter = new JavaIteratorWrapper<org.openrdf.model.Statement>(this._g.match(r, u, null, null));
     return stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping));
 }
Esempio n. 6
0
        public override IEnumerator <Triple> GetEnumerator()
        {
            JavaIteratorWrapper <dotSesame.Statement> stmtIter = new JavaIteratorWrapper <org.openrdf.model.Statement>(this._g.iterator());

            return(stmtIter.Select(s => SesameConverter.FromSesame(s, this._mapping)).GetEnumerator());
        }