Dimi.InstantRDF.BusinessLogic.ResourceFactory.GetNodeIri C# (CSharp) Метод

GetNodeIri() приватный Метод

Generates or retrieves the IRI for a node.
private GetNodeIri ( int nodeId, string nodeName ) : string
nodeId int The node id.
nodeName string Name of the node.
Результат string
        private string GetNodeIri(int nodeId, string nodeName)
        {
            string iriName;
            if (NodeNaming.IsNamed(nodeId))
            {
                iriName = NodeNaming.GetName(nodeId);
            }
            else
            {
                var name = nodeName;
                if (NodeNaming.NameExists(name))
                    name = name + "_" + Guid.NewGuid().ToString();
                NodeNaming.SaveName(nodeId, name);
                iriName = name;
            }

            return Configuration.Configuration.ResourceNamespace + "/" + iriName;
        }