Ejemplo n.º 1
0
        public void FilterByTypes()
        {
            // this is fairly ugly. if types has values we add an extra property
            // RDF_TYPE to records during build, then filter out records of the
            // wrong types here. finally, we strip away the RDF_TYPE property here.

            if (_types.Count == 0)
            {
                return;
            }

            var recordKey = new List <string>(_records.Keys);

            foreach (var uri in recordKey)
            {
                RecordImpl r = _records[uri];
                if (!FilterByType(r))
                {
                    _records.Remove(uri);
                }
                else
                {
                    r.Remove(RDF_TYPE);
                }
            }
        }
Ejemplo n.º 2
0
 //TODO: refactor this so that we share code with addStatement()
 public void Statement(string subject, string property, string obj, bool literal)
 {
     var record = (_records.ContainsKey(subject)) ? _records[subject] : null;
     if (record == null)
     {
         record = new RecordImpl();
         _records.Add(subject, record);
     }
     //_columnarDataSource
 }
Ejemplo n.º 3
0
        //TODO: refactor this so that we share code with addStatement()
        public void Statement(string subject, string property, string obj, bool literal)
        {
            var record = (_records.ContainsKey(subject)) ? _records[subject] : null;

            if (record == null)
            {
                record = new RecordImpl();
                _records.Add(subject, record);
            }
            //_columnarDataSource
        }
Ejemplo n.º 4
0
 public void AddStatement(RecordImpl record, string subject, string property, string obj)
 {
     //List<Column> cols =
 }
Ejemplo n.º 5
0
 public void AddStatement(RecordImpl record, string subject, string property, string obj)
 {
     //List<Column> cols =
 }