public IEnumerable <Triple> GetTriplesForObject(Uri objectUri)
        {
            var objectPath     = GetObjectFileName(objectUri);
            var filePath       = GetFilePath(objectPath);
            var lines          = GetFileContent(filePath);
            var triplesHandler = new FilteredTriplesList(t => (t.Object as IUriNode)?.Uri.Equals(objectUri) ?? false);
            var nodeStr        = "<" + objectUri + ">";

            _lineReader.Load(triplesHandler, new StringReader(string.Join("\n", lines.Where(l => l.Contains(nodeStr)))));
            return(triplesHandler.Triples);
        }
        public IEnumerable <Triple> GetTriplesForObject(INode objectNode)
        {
            var objectPath     = GetObjectFileName(objectNode);
            var filePath       = GetFilePath(objectPath);
            var lines          = GetFileContent(filePath);
            var triplesHandler = new FilteredTriplesList(t => t.Object.Equals(objectNode));
            var nodeStr        = _lineFormat.Format(objectNode, TripleSegment.Object);

            _lineReader.Load(triplesHandler, new StringReader(string.Join("\n", lines.Where(l => l.Contains(nodeStr)))));
            return(triplesHandler.Triples);
        }
        public IEnumerable <Triple> GetTriplesForSubject(Uri shapeUri)
        {
            var subject        = "<" + shapeUri + ">";
            var subjectPath    = GetSubjectFileName(shapeUri);
            var filePath       = GetFilePath(subjectPath);
            var lines          = GetFileContent(filePath);
            var triplesHandler = new FilteredTriplesList();

            _lineReader.Load(triplesHandler, new StringReader(string.Join("\n", lines.Where(l => l.StartsWith(subject)))));
            return(triplesHandler.Triples);
        }
        public IEnumerable <Triple> GetTriplesForSubject(INode subjectNode)
        {
            var subjectPath    = GetSubjectFileName(subjectNode);
            var filePath       = GetFilePath(subjectPath);
            var lines          = GetFileContent(filePath);
            var triplesHandler = new FilteredTriplesList();
            var nodeStr        = _lineFormat.Format(subjectNode, TripleSegment.Subject);

            _lineReader.Load(triplesHandler, new StringReader(string.Join("\n", lines.Where(l => l.StartsWith(nodeStr)))));
            return(triplesHandler.Triples);
        }