public void Add(Artifact t) { string uri = OwlClassSupertype.GetOntologyBaseUri(typeof(Artifact)); if (!namespaces.ContainsValue(uri)) { namespaces.Add("ns" + nscount++, uri); } if (t.InstanceUri == null) t.InstanceUri = CreateInstanceName(t); store.Add(t); }
partial void OnHasDependencyOnChanging(Artifact value);
private string CreateInstanceName(Artifact atfct) { return OwlClassSupertype.GetInstanceBaseUri(typeof(Artifact)) + "_" + HttpUtility.UrlEncode(atfct.FilePath.GetHashCode().ToString()); }