Esempio n. 1
0
        public ExpansionContext(ExpansionProfile profile)
        {
            this._profile = profile;

            this._linkTree.BaseUri = new Uri(VDS.RDF.Writing.WriterHelper.StoreDefaultGraphURIs.First());
            this._linkTree.NamespaceMap.AddNamespace("owl", new Uri(NamespaceMapper.OWL));
            this._sameAs = this._linkTree.CreateUriNode("owl:sameAs");
            this._seeAlso = this._linkTree.CreateUriNode("rdfs:seeAlso");
            this._store.Add(this._linkTree);
        }
Esempio n. 2
0
        private IInMemoryQueryableStore LoadInternal(Uri u, ExpansionProfile profile)
        {
            ExpansionContext context = new ExpansionContext(profile);
            context.Uris.Enqueue(new UriToExpand(u, 0));

            Expand(context);

            return context.Store;
        }
Esempio n. 3
0
 /// <summary>
 /// Loads Linked Data starting from the given URI and using the given Expansion Profile
 /// </summary>
 /// <param name="u">URI to start from</param>
 /// <param name="profile">Expansion Profile</param>
 /// <returns></returns>
 public IInMemoryQueryableStore Load(Uri u, ExpansionProfile profile)
 {
     return this.LoadInternal(u, profile);
 }