CreateGraphMLXmlDocument
        (
            WhatToInclude eWhatToInclude
        )
        {
            AssertValid();

            GraphMLXmlDocument oGraphMLXmlDocument = new GraphMLXmlDocument(false);

            NodeXLGraphMLUtil.DefineEdgeRelationshipGraphMLAttribute(
                oGraphMLXmlDocument);

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedCategoryEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedCategoryID, "Shared Category");
            }

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedCommenterEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedCommenterID, "Shared Commenter");
            }

            if (WhatToIncludeFlagIsSet(eWhatToInclude,
                                       WhatToInclude.SharedVideoResponderEdges))
            {
                oGraphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                    SharedVideoResponderID, "Shared Video Responder");
            }

            oGraphMLXmlDocument.DefineVertexStringGraphMLAttributes(
                TitleID, "Title",
                AuthorID, "Author",
                CreatedDateUtcID, "Created Date (UTC)"
                );

            oGraphMLXmlDocument.DefineGraphMLAttribute(false, RatingID,
                                                       "Rating", "double", null);

            oGraphMLXmlDocument.DefineGraphMLAttributes(false, "int",
                                                        ViewsID, "Views",
                                                        FavoritedID, "Favorited",
                                                        CommentsID, "Comments"
                                                        );

            NodeXLGraphMLUtil.DefineVertexImageFileGraphMLAttribute(
                oGraphMLXmlDocument);

            NodeXLGraphMLUtil.DefineVertexCustomMenuGraphMLAttributes(
                oGraphMLXmlDocument);

            return(oGraphMLXmlDocument);
        }
Example #2
0
        DefineEdgeRelationshipGraphMLAttribute
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                EdgeRelationshipID, "Relationship");
        }
Example #3
0
        DefineCommonGraphMLAttributes
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            NodeXLGraphMLUtil.DefineVertexImageFileGraphMLAttribute(
                graphMLXmlDocument);

            NodeXLGraphMLUtil.DefineVertexCustomMenuGraphMLAttributes(
                graphMLXmlDocument);

            NodeXLGraphMLUtil.DefineEdgeRelationshipGraphMLAttribute(
                graphMLXmlDocument);

            graphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                EdgeRelationshipDateUtcID, "Relationship Date (UTC)");
        }
Example #4
0
        DefineEdgeStatusGraphMLAttributes
        (
            GraphMLXmlDocument graphMLXmlDocument
        )
        {
            Debug.Assert(graphMLXmlDocument != null);

            graphMLXmlDocument.DefineEdgeStringGraphMLAttributes(
                EdgeStatusID, "Tweet",
                EdgeStatusUrlsID, "URLs in Tweet",
                EdgeStatusDomainsID, "Domains in Tweet",
                EdgeStatusHashtagsID, "Hashtags in Tweet",
                EdgeStatusDateUtcID, "Tweet Date (UTC)",
                EdgeStatusWebPageUrlID, "Twitter Page for Tweet"
                );

            DefineLatitudeAndLongitudeGraphMLAttributes(graphMLXmlDocument, true);

            NodeXLGraphMLUtil.DefineImportedIDGraphMLAttribute(
                graphMLXmlDocument, true);

            DefineInReplyToStatusIDGraphMLAttribute(graphMLXmlDocument, true);
        }