{"id":17213,"date":"2025-04-08T01:00:23","date_gmt":"2025-04-08T00:00:23","guid":{"rendered":"https:\/\/www.univ-chlef.dz\/fdsp\/?p=17213"},"modified":"2025-04-08T01:03:02","modified_gmt":"2025-04-08T00:03:02","slug":"%d8%a7%d9%84%d9%85%d8%b3%d8%a7%d8%a8%d9%82%d8%a9-%d8%a7%d9%84%d9%88%d8%b7%d9%86%d9%8a%d8%a9-%d8%a7%d9%84%d8%ac%d8%a7%d9%85%d8%b9%d9%8a%d8%a9-%d9%84%d9%84%d9%87%d8%a7%d9%83%d8%a7%d8%ab%d9%88%d9%86","status":"publish","type":"post","link":"https:\/\/fdsp.univ-chlef.dz\/?p=17213","title":{"rendered":"\u0627\u0644\u0645\u0633\u0627\u0628\u0642\u0629 \u0627\u0644\u0648\u0637\u0646\u064a\u0629 \u0627\u0644\u062c\u0627\u0645\u0639\u064a\u0629 \u0644\u0644\u0647\u0627\u0643\u0627\u062b\u0648\u0646 \u0627\u0644\u0628\u064a\u0626\u064a\u0629 \u0648 \u0627\u0644\u0627\u0633\u062a\u062f\u0627\u0645\u0629"},"content":{"rendered":"\n<p><a href=\"http:\/\/from neo4j import GraphDatabase     class Neo4jGraph:     def __init__(self,NEO4J_URI,NEO4J_USERNAME,NEO4J_PASSWORD):         &quot;&quot;&quot;Initialize the connection to the Neo4j database.&quot;&quot;&quot;         print('Initialize the connection to the Neo4j database NEO4J_URI',NEO4J_URI,' NEO4J_USERNAME ',NEO4J_USERNAME,' NEO4J_PASSWORD ',NEO4J_PASSWORD)         # self.driver = GraphDatabase.driver('neo4j+s:\/\/465ccc57.databases.neo4j.io', auth=('neo4j', 'i_L8bWtvDwJF22938yJ_5wFwbZz7PHmkXYidDbMk1zM'))         NEO4J_URI ='neo4j+ssc:\/\/360f7910.databases.neo4j.io'           USERNAME ='neo4j'         PASSWORD ='naXGVP6u45k-3iLuq8PxvZZNX488t5A3TxNJZG7Wb40'         try:            self.driver = GraphDatabase.driver(NEO4J_URI, auth=(USERNAME, PASSWORD))            print('connected================================================')         except Exception as e: print('======= connection ',e)         # AUTH = (NEO4J_USERNAME, NEO4J_PASSWORD)         # with GraphDatabase.driver('neo4j+s:\/\/465ccc57.databases.neo4j.io', auth=AUTH) as driver:         #          driver.verify_connectivity()      def close(self):         &quot;&quot;&quot;Close the Neo4j connection.&quot;&quot;&quot;         self.driver.close()     def open(self):         &quot;&quot;&quot;Close the Neo4j connection.&quot;&quot;&quot;         self.driver.open()     def run_query(self, query, parameters=None):         &quot;&quot;&quot;Run a Cypher query in Neo4j.&quot;&quot;&quot;         # with self.driver.session() as session:         #     return session.run(query, parameters or {})         try:             with self.driver.session(database=&quot;neo4j&quot;) as session:                 return session.run(query, parameters)             print('run_query================================================')         except Exception as e: print('======= run_query ',e)             def create_node(self, label, properties):         &quot;&quot;&quot;Create a node with a given label and properties.&quot;&quot;&quot;         query = f&quot;CREATE (n:{label} $properties)&quot;         self.run_query(query, {&quot;properties&quot;: properties})       def create_relationship(self, node1, node2, relation, properties=None):         &quot;&quot;&quot;Create a relationship between two nodes.&quot;&quot;&quot;         query = f&quot;&quot;&quot;         MATCH (a {{name: $node1}}), (b {{name: $node2}})         CREATE (a)-[r:{relation} $properties]-&gt;(b)         &quot;&quot;&quot;         self.run_query(query, {&quot;node1&quot;: node1, &quot;node2&quot;: node2, &quot;properties&quot;: properties or {}})      def update_node(self, label, node_name, new_properties):         &quot;&quot;&quot;Update properties of a node.&quot;&quot;&quot;         query = f&quot;&quot;&quot;         MATCH (n:{label} {{name: $node_name}})         SET n += $new_properties         &quot;&quot;&quot;         self.run_query(query, {&quot;node_name&quot;: node_name, &quot;new_properties&quot;: new_properties})      def delete_node(self, label, node_name):         &quot;&quot;&quot;Delete a node and its relationships.&quot;&quot;&quot;         query = f&quot;&quot;&quot;         MATCH (n:{label} {{name: $node_name}})         DETACH DELETE n         &quot;&quot;&quot;         self.run_query(query, {&quot;node_name&quot;: node_name})      def delete_relationship(self, node1, node2, relation):         &quot;&quot;&quot;Delete a specific relationship between two nodes.&quot;&quot;&quot;         query = f&quot;&quot;&quot;         MATCH (a {{name: $node1}})-[r:{relation}]-(b {{name: $node2}})         DELETE r         &quot;&quot;&quot;         self.run_query(query, {&quot;node1&quot;: node1, &quot;node2&quot;: node2})      def get_nodes(self, label):         &quot;&quot;&quot;Retrieve all nodes of a specific label.&quot;&quot;&quot;         query = f&quot;MATCH (n:{label}) RETURN n.name, n&quot;         results = self.run_query(query)         return [{**record[&quot;n&quot;]} for record in results]      def get_relationships(self, relation):         &quot;&quot;&quot;Retrieve all relationships of a specific type.&quot;&quot;&quot;         query = f&quot;&quot;&quot;         MATCH (a)-[r:{relation}]-(b)         RETURN a.name AS node1, type(r) AS relationship, b.name AS node2         &quot;&quot;&quot;         results = self.run_query(query)         return [{&quot;node1&quot;: record[&quot;node1&quot;], &quot;relationship&quot;: record[&quot;relationship&quot;], &quot;node2&quot;: record[&quot;node2&quot;]} for record in results]\">\u0627\u0644\u0627\u0639\u0644\u0627\u0646<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022821-rotated.jpg\">\u0627\u0644\u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0641\u0646\u064a\u0629<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023026-rotated.jpg\">\u0627\u0644\u0634\u0631\u0648\u0637<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"1024\" src=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-729x1024.jpg\" alt=\"\" class=\"wp-image-17220\" srcset=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-729x1024.jpg 729w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-214x300.jpg 214w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-768x1079.jpg 768w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-1093x1536.jpg 1093w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-1458x2048.jpg 1458w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023268-rotated.jpg 1659w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"724\" height=\"1024\" src=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-724x1024.jpg\" alt=\"\" class=\"wp-image-17221\" srcset=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-724x1024.jpg 724w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-212x300.jpg 212w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-768x1087.jpg 768w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-1085x1536.jpg 1085w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-1447x2048.jpg 1447w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023498-rotated.jpg 1647w\" sizes=\"auto, (max-width: 724px) 100vw, 724px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"726\" height=\"1024\" src=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-726x1024.jpg\" alt=\"\" class=\"wp-image-17222\" srcset=\"https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-726x1024.jpg 726w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-213x300.jpg 213w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-768x1084.jpg 768w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-1089x1536.jpg 1089w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-1452x2048.jpg 1452w, https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15023725-rotated.jpg 1655w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644\u0627\u0639\u0644\u0627\u0646 \u0627\u0644\u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0641\u0646\u064a\u0629 \u0627\u0644\u0634\u0631\u0648\u0637<\/p>\n","protected":false},"author":1,"featured_media":17214,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[12,43],"tags":[],"class_list":["post-17213","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-12","category-43"],"uagb_featured_image_src":{"full":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-rotated.jpg",1651,2327,false],"thumbnail":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-150x150.jpg",150,150,true],"medium":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-213x300.jpg",213,300,true],"medium_large":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-768x1082.jpg",768,1082,true],"large":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-727x1024.jpg",727,1024,true],"1536x1536":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-1090x1536.jpg",1090,1536,true],"2048x2048":["https:\/\/fdsp.univ-chlef.dz\/wp-content\/uploads\/2025\/04\/img20250406_15022593-1453x2048.jpg",1453,2048,true]},"uagb_author_info":{"display_name":"Zouatenia","author_link":"https:\/\/fdsp.univ-chlef.dz\/?author=1"},"uagb_comment_info":0,"uagb_excerpt":"\u0627\u0644\u0627\u0639\u0644\u0627\u0646 \u0627\u0644\u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0641\u0646\u064a\u0629 \u0627\u0644\u0634\u0631\u0648\u0637","_links":{"self":[{"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/posts\/17213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17213"}],"version-history":[{"count":0,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/posts\/17213\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=\/wp\/v2\/media\/17214"}],"wp:attachment":[{"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdsp.univ-chlef.dz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}